The scalar range ("flipflop") operator would be handy for this:
The second regex shows how to compensate for numbers you don't know. See perlop for more on the flipflop.while (<FILE>) { print if /^ {5}Paragraph2:$/ .. /^ {5}Paragraph\d+:$/; }
After Compline,
Zaxo
In reply to Re: Regexp help, multiple lines
by Zaxo
in thread Regexp help, multiple lines
by 2ge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |