len(rereplace(mystring,"[^\\]","","ALL"))
You may not need the 2nd \ in the regex... you didn't need to in a [] collection in
CF5 ... not sure off the top of my head
if that changed in cfmx.
Original Message -----------------------
Hi,
I need to check my URLDecode(dir) for the number of occurences of the "\"
So for example, URLDecode(dir) is equal to D:\mywork\temp\dir and then add the check
into my <cfif statement.
Below is what I have so far. I need to add another check on the <cfif statement to see
if two or more "\" appear in the URLDecode(dir)
<cfif FindNoCase(URLDecode(dir),SESSION.DisplayShowMe)>
....badda bing...badda boom....
</cfif>
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community.
http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4