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

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support