Thanks Dave. I had to go into a meeting, otherwise I'd have responded already on this. In our case the image file names had parens (i.e. 1234.jpg,1234(2).jpg,1234(3).jpg, etc). I changed the first line to the following and it worked like a champ:
^(((https?:|ftp:|gopher:)\/\/))[-[:alnum:]\?%,\.> \/&##!@:=\+~_\(\)]+[A-Za-z0-9\/]$ Thanks for getting back to me though. Regex is an area I really need to brush up on. Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _____________________________ http://blog.cutterscrossing.com Dave Anderson wrote: > Try changing the regex from this: > ^(((https?:|ftp:|gopher:)\/\/))[-[:alnum:]\?%,\.> > \/&##!@:=\+~_]+[A-Za-z0-9\/]$ > to this: > ^(((https?:|ftp:|gopher:)\/\/))[-[:alnum:]\?%,\.\/&##!@:=\(\)\+~_]+[A-Za-z0-9\/\(\)]$ > > I did a couple of tests with parens in and around parameter values, and it > worked for me. > > (in a regex, the backslash means 'match the following literal character'). > > .... >> Seemed to be working great, but the problem is that the regex excludes >> >> '(' and ')' signs, which are used in some of these URL's. How would I >> >> adjust the regex to no longer exclude these two characters? >> >> <cfscript> >> /** > >> * A quick way to test if a string is a URL > >> * > >> * @param stringToCheck The string to check. > >> * @return Returns a boolean. > >> * @author Nathan Dintenfass ([EMAIL PROTECTED]) > >> * @version 1, November 22, 2001 > >> */ >> function isURL(stringToCheck){ >> return >> REFindNoCase("^(((https?:|ftp:|gopher:)\/\/))[-[:alnum:]\?%,\. >> \/&##!@:=\+~_]+[A-Za-z0-9\/]$",stringToCheck) >> NEQ 0; >> } >> </cfscript> >> >> TIA to anyone and everyone who can help me with a solution to this >> issue. >> -- >> Steve "Cutter" Blades >> Adobe Certified Professional >> Advanced Macromedia ColdFusion MX 7 Developer >> _____________________________ >> http://blog.cutterscrossing. > com > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278791 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

