Displaying page
of
pages;
Items to
Title |
Test
Details
URL Parsing
|
Expression |
(?:(?<scheme>[a-zA-Z]+)://)?(?<domain>(?:[0-9a-zA-Z\-_]+(?:[.][0-9a-zA-Z\-_]+)*))(?::(?<port>[0-9]+))?(?<path>(?:/[0-9a-zA-Z\-_.]+)+)(?:[?](?<query>.+))?
|
Description |
Separates a URL into components viz. schema, domain, port, path and query. Avoids unnecessary numbered groups caused by braces.
|
Matches |
http://www.google.com/cgi/search?hl=en&q=RegEx+Library&btnG=Google+Search&meta= | ftp://ftp.google.com:21/Files/Data.zip | http://www.google.com:80/cgi/search?hl=en&q=RegEx+Library&btnG=Google+Search&meta=
|
Non-Matches |
http:/www.google.co.za:80/cgi/search?hl=en&q=RegEx+Library&btnG=Google+Search&meta= | http://www.google.co.za?80/cgi/search?hl=en&q=RegEx+Library&btnG=Google+Search&meta= | http://www.google.co.za:80/cgi/search/hl=en&q=RegEx+Library&btnG=Google+Search&meta=
|
Author |
Rating:
Not yet rated.
Raje
|
Displaying page
of
pages;
Items to