Wednesday, August 13, 2003

RegEx to Remove font tags

Wrote this on my birthday and now here for safe keeping:
Here's a Regular Express for removing all font tags with Dream Weaver;

1) Go to Find and Replace. Paste this into the right Search For box:
<fon[^<]+>|</fon[^<]+>

2) Leave Replace with blank

3) Click the Option Use Regular Expressions.

This will replace all Font tags and their contents like size="99".

Have fun.

No comments: