Capture the results of the match in an array.
my @messages = /AAAAAA(.*?)BBBBBB/sgm; foreach (@messages) { print "$_\n"; }
In reply to Re: matching several lines
by Narveson
in thread matching several lines
by control153
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |