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


-----Original Message-----
From: Mike Wesling [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 19, 2008 9:04 AM
To: cf-talk
Subject: regular expression to find #

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:315548
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