$_ = 'password=foo&user=bar'; print $1 if /password=(.+?)&/;