| Regular Expressions in Homesite 5.5 |
|
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:
Find what:
Replace with: 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 ) |