Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^(?=[^&])(?:(?<scheme>[^:/?#]+):)?(?://(?<authority>[^/?#]*))?(?<path>[^?#]*)(?:\?(?<query>[^#]*))?(?:#(?<fragment>.*))?
|
Description |
Use it for breaking-down a URI (URL, URN) reference into its main components: Scheme, Authority, Path, Query and Fragment.
This is not a simple match regular expression. so it not works to verify a URI. It returns 1 matching group for each URI component.
For example, for the following URI:
http://regexlib.com/REDetails.aspx?regexp_id=x#Details
returns: scheme="http", authority="regexlib.com", path="/REDetails.aspx", query="regexp_id=x" and fragment="Details".
This is a W3C raccomandation (RFC 2396).
|
Matches |
http://regexlib.com/REDetails.aspx?regexp_id=x#Details
|
Non-Matches |
&
|
Author |
Rating:
Not yet rated.
Frederico Knabben
|
Displaying page
of
pages;
Items to