Has anyone got some code that verifies URL syntax.
I went to the developers exchange and got one called <CF_Validate_URL>.
I'm afraid that I'm no guru on Regular Expression so I am not sure exactly what this
CT is checking.
<cfif attributes.url is not "" and not
REFindNoCase("^[a-z]+://[a-z0-9:@&=;?%$.+!*'(),-]+(/[a-z0-9:@&=;?##%$_.+!*'(),-]*)*$",
attributes.url)>
<cfset caller.ok = 0>
<cfelse>
<cfset caller.ok = 1>
</cfif>
Please tell me if this CT seems to be OK, or if not if anyone has a reliable CT that
does what I want.
It says https://www.f.c is a valid URL. 8-((
Thanks
Allan