| Title |
Test
Find
URL Parsing Regex
|
| Expression |
(?<protocol>http(s)?|ftp)://(?<server>([A-Za-z0-9-]+\.)*(?<basedomain>[A-Za-z0-9-]+\.[A-Za-z0-9]+))+((/?)(?<path>(?<dir>[A-Za-z0-9\._\-]+)(/){0,1}[A-Za-z0-9.-/]*)){0,1} |
| Description |
This regex matches fully qualified external urls (http, https, or ftp). It uses the ms specific group-naming structure to present friendly named groups back to the user. |
| Matches |
http://www.myserver.mydomain.com/myfolder/mypage.aspx |
| Non-Matches |
www.myserver.mydomain.com/myfolder/mypage.aspx |
| Author |
Rating:
Scott Sargent
|
| Source |
|
| Your Rating |
|