Title |
Test
Find
Web URL Validation RegEx
|
Expression |
^(http(s?)\:\/\/)?(www.)?(([A-Za-z]+)([0-9]+)?([A-Za-z0-9\.\_\-]+)?)(\.)(([a-zA-Z]{2,})([0-9a-zA-Z]+)?)(\:\d{0,5})?(\/|(\/[A-Za-z]+([a-zA-Z0-9]+)?)+)?(\?[a-zA-Z0-9\\\&\%\_\.\/\-\=\~\*]+)?$ |
Description |
Web Url validation using regex. need mult-line option |
Matches |
https://www.test.com | https://www.test.com/ | https://test.com | https://test.com/ | http://test.com | www.test.com | www.test.com/ | test.com | test.com | test069.com | test.test.com | test01.test01.com | test.test.co | test.com:1 | test.cm:12345 | www.xa.com/abc/a | www.xa.com/abc | test.com/con1/method1 | w.google.com | google.com?te-st=xyz | oogle.com?test=xyz | google.com?test= | google.com?test | google.com?test=xyz&text | google.com?test=xyz&text=t&*5 |
Non-Matches |
*.google.com | goole.com/* | .google.com | google.com? | google.com/? | google.co-m | @.google.com | ftp://test.com | test test.com | www.xa.com/ab c/a | test.com:123456 | //test.com | test.test.c | 01test.test.com | test.c | test.test. | http://www.test.c | 01test.com | test.01 | |
Author |
Rating:
Not yet rated.
Ankur Ranpariya
|
Source |
|
Your Rating |
|