I have the following code
my $content = $response->content;
$content =~ /username=([\s\S]+?)&/;
my $username = $1;
print $username; #Prints the text
lets say I want to do this again but for different text
for example
$content =~ /rank=([\s\S]+?)&/;
my $rank = $1;
print $rank; #Prints the username text
do I have to change $1 to something else?
It would be safer something like:
Or, more elegantly: