• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do i validate a url?

#1
[eluser]Shaheer[/eluser]
Hi,

i wanted to validate a url. Using PHP REGEX.

i have got some REGEXs by googling but all of them have flaws in them.

I wanted to match

all of these:
http://www.google.com
https://www.google.com
www.google.com
http://google.com
google.com/anything (or ?query )

but not javascript-: or mailto: can anyone help?

hey i am trying to type js protocol but expression-engine (the cms used here) removes it Big Grin


Messages In This Thread
how do i validate a url? - by El Forum - 08-22-2009, 09:40 AM
how do i validate a url? - by El Forum - 08-22-2009, 10:11 AM
how do i validate a url? - by El Forum - 08-22-2009, 07:32 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.