use 5.010; for (split m/\n/, $str) { say if m/$regex/; }
If you don't want to capture the line, you have to extract the line first.
In reply to Re: Multiline Regex
by moritz
in thread Multiline Regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |