[thelist] RegExp - how to say "not this string"
Joshua Olson
joshua at waetech.com
Tue May 11 10:13:44 CDT 2004
> -----Original Message-----
> From: Sarah Sweeney
> Sent: Tuesday, May 11, 2004 11:00 AM
>
> I know that ^x means not x - is there a way to specify "not this
> string"? Basically, what I want is something more like this:
> <th>(^(</th>))</th>
Sarah,
I think you'll want a negative lookahead assert for this. If memory serves,
CF does not support this syntax. Here's an example from a URL ReWrite
engine:
"
For example you need to move all users not using Internet Explorer to the
other location:
RewriteCond User-Agent: (?!.*MSIE).*
RewriteRule (.*) /nonie$1
"
>From this example, you can derive how they work.
http://www.regular-expressions.info/lookaround.html
<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168
More information about the thelist
mailing list