Need Help With REFind
i have form filed , need make sure there not url's being passed through it. search field , test "http" and/or "www", if charters present send special page handels , abort rest of script.
can me this?
thanks!
nick
see if helps. it's regex cheat sheet.
<cfset regex = "^(http://|www)[a-za-z0-9\-\.]+\.[a-za-z]{2,3}(/\s*)?$" />
then :
#refind(regex,"your_string")#
should return 1 if there's match, or 0 if there isn't.
More discussions in ColdFusion
adobe
Comments
Post a Comment