X Close Window

R3D Floater Version 1.5.0.4

Third Version of mod_floater is ready for Download.

Simple Joomla Module to slide in any content. Adjustable width, height, transparency, timing & more.

Free for Download here

Now native in Joomla 1.5.x...

 
 
German formal - SieEnglish
 
 
 
News
Regular Expressions in Homesite 5.5 | Print |  E-mail

Had to change some 700 lines of code in about 120 files - time to give that regular expressions manual another look.

The complete line of code looked like so:

<area shape="rect"  alt="Kirchholz-Häusle" xhref="16/kirchholz_haeusle.html" title="Kirchholz-Häusle" coords="873,215,918,258" onClick="open_win('16/johannes_kreuz.html',740,660,0,0,0,0,0,1,1,0,5,'win1');return false;" target="_blank">

I needed to get rid of the following javascript snippet that was not needed any longer:

onClick="open_win('16/johannes_kreuz.html',740,660,0,0,0,0,0,1,1,0,5,'win1');return false;" target="_blank"> 

above line(no line brakes) should change into

target="_blank">


Solution in Homesite 5.5:
Extended Replace, turn on Regluar Expressions,

Find what:
onClick=[\(A-Za-z0-9_/.,'\);" =]*>

Replace with:
target="_blank">

The operation about three seconds ;)

onClick=     is the first anchor

[\(A-Za-z0-9_/.,'\);" ]   encludes all characters found between the first anchor and the second anchor - which is

*>   where * is a special character: it matches the specified characters ">" throughout the entire document.

 

Helpful site:   Jim Montgomery's site - Thanks Jim!

http://jimmont.com/resrc/regex.htm 

and of course, the homesite help, now hosted by Adobe ;)

http://www.adobe.com/livedocs/coldfusion/5.0/Using_HomeSite/language5.htm 

Last Updated ( Saturday, 05 January 2008 )
 

© 1997 - 2010  R3D - Webentwicklung  - Webentwicklung, Photographie & Netzwerk