Here's the test case:
while (<DATA>) { if (/(\d)\n{2}/) { print "$1\n"; } } __DATA__ Line 1 Line 2 Line 3 Line 5 Line 6 Line 7 Line 9
My question is, why does this not print:
3 7
As it stands, the script prints nothing. I know there are no \r or \f in the data, and just to be sure I tried matching against \W{2,}.
What am I missing here?
In reply to Multiple newline regex by rhythmicus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |