in reply to Re^3: Splitting an url in its components
in thread Splitting an url in its components
As an alternative to this module, the following (official) regular expression can be used to decode a URI:
my($scheme, $authority, $path, $query, $fragment) = $uri =~ m|(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\?([^#]*))?(?:# +(.*))?|;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Splitting an url in its components
by massa (Hermit) on Jul 18, 2008 at 12:44 UTC |