I am writing up a demo for this now... So if no one solves it, I will demonstrate.
...................... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -----Original Message----- From: Dave Phillips [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 23, 2007 4:53 PM To: CF-Talk Subject: isURL() function on cflib Hi, I used this isURL() function I found on CFLIB, but it reports the below URL's as invalid. Any ideas what's wrong with the reg exp ? function isURL(stringToCheck){ return REFindNoCase("^(((https?:|ftp:|gopher:)\/\/))[-[:alnum:]\?%,\.\/&##!@:=\ +~_] +[A-Za-z0-9\/]$",stringToCheck) NEQ 0; } Here are the types of URL's found to be invalid (I have xxxx'd out the proprietary information but the structure remains the same): http://xxxx.xxxx.com/xxxxxx/xxxxxxx.cfm?cdcrs=RD4823 <http://xxxx.xxxx.com/xxxxxx/xxxxxxx.cfm?cdcrs=RD4823&empcode=GUEST43352 > &empcode=GUEST43352 (I'm guessing it has something to do with not handling a URL with parameters) http://xxxx.xxxx.com/on_job/supplychain/index.html (this one has an _ in it) http://xxxx.xxxx.com (i have no idea why this one is found invalid) http://xxx.xxxxx.com/xxxxxx (this one either) https://xxxxx.xxxxxl.com/xxxxx/xxx/. (techincally, this one will work, because the period will be translated as the current directory, so it should return valid) If any one has any recommendations on how to fix the reg exp so that it will consider these URL's valid, please let me know. Thanks! Dave ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267398 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4