Underscore is deffo included on CF 8:
<cfset str = "asasaa_123">
<cfdump var="#REMatch('\w', str)#">
Adrian
Building a DB of errors at cferror.org
-----Original Message-----
From: Matt Quackenbush [mailto:[EMAIL PROTECTED]
Sent: 06 October 2008 23:41
To: cf-talk
Subject: Re: regex negative lookahead
I'm not sure which regEx engine the example link uses, but the ColdFusion
regEx engine defines \w as matching alpha-numeric characters only. In my
experience, that's also how it behaves.
http://livedocs.adobe.com/coldfusion/8/htmldocs/regexp_08.html#1144043
Maybe I wrongly assumed that he was talking purely about the CF regEx
engine?
On Mon, Oct 6, 2008 at 5:10 PM, Peter Boughton wrote:
> >As an aside, [0-9A-Za-z] can be shortened to [\w].
>
> Not quite - \w also includes underscore, plus other characters too -
varies
> with character set.
>
> Here's an image demonstrating what \w matches:
> http://www.regular-expressions.info/screens/rxbcharclass.png
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313496
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4