我有以下代码
my $content = $response->content;
$content =~ /username=([\s\S]+?)&/;
my $username = $1;
print $username; #Prints the text
假设我想再做一次,但文本不同
例如
$content =~ /rank=([\s\S]+?)&/;
my $rank = $1;
print $rank; #Prints the username text
我必须将 1 美元换成别的东西吗?