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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -