in reply to Perl Regex
I also tried (/^msg=\"(.*?)\"+) This also gives me msg="http_decoder:
No, it does not. Whatever that captures must end with a '"'. A few possible reasons you might think you got what you say you got:
my ($msg) = /^msg="(.*?)"/ should do the trick, but since I dislike using the "?" quantifier, I'd use my ($msg) = /^msg="[^"]*"/.
|
|---|