regex - cutting a portion of url using regular expression in perl -
i have following url :
need proper way extract value after "?" need find how explode in perl http://example.com part out of string, , store in own variable, split , save in variable before passing it.
don't yourself, use uri module, designed make sense of kind of data.
my $uri = uri->new('http://hostname.com/...?...'); $uri->query; # value after '?' $uri->scheme; # "http" $uri->host; # hostname.com
Comments
Post a Comment