phorcon3 Posted October 14, 2009 Share Posted October 14, 2009 i need the regex to validate urls, such as 1) www.google.com 2) http://www.google.com 3) https://www.gogle.com 4) htt|ps://www.google.com/index.php?q=blah & www.google.com/index.php?q=blah 5) as well as .../index.php?q=blah&q2=blah2&q3=blah3... 6) http://google.com /(https?:\/\/)?(\w{0,3})?(\w)*?/ would that work? Link to comment https://forums.phpfreaks.com/topic/177716-url-regex/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.