That is correct.  Try this, with \ as escape character:

REFind('[##\.\\/%]',myString)



> I thought you cannot just place a . or \ as they are special 
> characters. I also need to find a double . not a single.
> 
> 
> right now I am using '[##\\&%]' and it is returning true on every 
> evaluation.
> 
> 
> 
> >You'd treat those characters as a character set like so:
> >
> ><cfset myString = 'a test ## to see . where I might find % in some 
> string'>
> ><cfset matches = REFind('[##.\/%]',myString,1,true)>
> ><cfdump var="#myString#">
> ><cfdump var="#matches#">
> ><cfabort>
> >
> >Putting the characters inside the square brackets forces the regex to 
> look
> >for each of those chars individually instead of as one string.
> >
> >
> >andy
> >
> >
> >I am trying to make a regular expression to find # .. \ / & and % in 
> a
> >string, but I am new to expressions. Anyone have a good link for 
> beginners
> >on doing this? 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:315595
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