the power of 0ne

# April 6, 2004

I wrote a quick frontier script today that strips out the smart tags that get pasted into your Manila messages when pasting into the WYSISWYG from Word. The main part of the script looks like this:

local (smartTags = {"st1:[^>]", "o:[^>]"});
for tag in smartTags {
regex.subst ("(<|</" + tag + ">", "\", @textToClean)}

Gotta love regular expressions, so much power is so few lines :)