[thelist] RE: thelist digest, Vol 1 #1232 - 32 msgs
Bruce Heerssen
bheerssen at visualbridge.tv
Thu Apr 5 15:28:30 CDT 2001
That's Ray for you -- always on the ball! Thank you Ray.
For those interested the CF 4.01 docs (among others) can be downloaded from
Allaire at:
http://www.allaire.com/handlers/index.cfm?ID=13513
- Bruce
> From: "Raymond Camden" <jedimaster at macromedia.com>
> To: <thelist at lists.evolt.org>
> Subject: RE: [thelist] Perl Regex
> Date: Thu, 5 Apr 2001 12:25:47 -0400
> charset="iso-8859-1"
> Reply-To: thelist at lists.evolt.org
>
> This should work for you:
>
> <CFSET STR = "Foo foo <title>This is the title</title> you blah">
> <CFSET Title =
> REReplaceNoCase(STR,".*(<[ ]*t[ ]*i[ ]*t[ ]*l[ ]*e>)([^>]*)(<[ ]*/[ ]*t[ ]*i
> [ ]*t[ ]*l[ ]*e[ ]*)>.*","\2")>
>
> It should check funky title tags like: < Ti tle>. However, it won't find:
>
> <TI
> TLE>
> ..
> </TITLE>
>
> You can make that work by changing [ ]* to [ #Chr(10)#]*. That _may_ do it.
> Actually, you may want to add the tab character in there as well.
>
> As for the docs - In CF 4.01 the docs were _much_ better for CF's regex. I
> don't have a URL handy, but I know you can find the 4.01 docs online.
>
More information about the thelist
mailing list