regex - cutting a portion of url using regular expression in perl -


i have following url :

http://stagingbugzilla.cpiv.com/html/estverificationpool/estpendingbugs.php?team_name=general%20administration

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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -