CF does support regular expressions.
Forta refers to them in a brief chapter in
the Advanced 4.0 book (the green one).

For instance, inside a cfscript block:

        thisContent =
"#REReplaceNoCase(thisContent,"<TD[^>]*>&nbsp;</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")#";


Eben Hewitt

-----Original Message-----
From: Bryan Rieger [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 7:03 AM
To: CF-Talk
Subject: Stupid Question - Regular Expressions?


Hello,

This may well qualify for the dumbest question of all time.
But here, goes. Does CF support regular expressions?
I can't seem to find any mention of them within Ben's book or on the Allaire
support site?

Cheersm

Bryan Rieger
Lead Developer, r&d projects

Trapeze Media
http://www.trapeze.com/

Now Playing: A broadband suspense-thriller by Trapeze.
http://www.safehouselive.com/
------------------------------------------------------------
"A pleasant illusion is better than a harsh reality."
Christian Nestell Bouvee
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to