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="[^"]*"/.
In reply to Re: Perl Regex
by ikegami
in thread Perl Regex
by cipher
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |