> I thought you cannot just place a . or \ as they are special 
> characters.

The . is not special when used within a character class (the square brackets).

i.e. You do *not* need to escape [.] - that will match dot, not 'any character'.


> I also need to find a double . not a single.

A character class matches a single character, so if you need it doubled, you 
don't want a character class for that bit (and thus it will need to be escaped).

So what you want is this - the parentheses are only required if part of a 
larger expression:
(\.\.|[#\\/&%])

Obviously with CF, you often need to escape the hash, so you want:
(\.\.|[##\\/&%])

In some regex flavours, the / would also need to be escaped, so might have:
(\.\.|[#\\\/&%])


Hope that makes sense?




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

Reply via email to