> CF does support regular expressions.
> Forta refers to them in a brief chapter in
> the Advanced 4.0 book (the green one).
The one I left at home today... ;-)
> For instance, inside a cfscript block:
>
> thisContent =
> "#REReplaceNoCase(thisContent,"<TD[^>]*> </TD>","","ALL")#";
> thisContent = "#REReplaceNoCase(thisContent,"<TD[^>]*>","|||","ALL")#";
> thisContent = "#REReplaceNoCase(thisContent,"</TD>","","ALL")#";
> thisContent= "#REReplaceNoCase(thisContent,"<FONT[^>]*>","","ALL")#";
> thisContent= "#REReplaceNoCase(thisContent,"</FONT>","","ALL")#";
> thisContent= "#REReplaceNoCase(thisContent,"<BR>",",","ALL")#";
> thisContent= "#REReplaceNoCase(thisContent,"<[^>]*>","","ALL")#";
> thisContent= "#REReplaceNoCase(thisContent,"#CHR(13)#","","ALL")#";
> thisContent= "#REReplaceNoCase(thisContent,"#CHR(10)#","","ALL")#";
This is a little ugly, but it will work nicely.
Thanks.
Cheers,
Bryan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists