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:313495
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to