in reply to Regexp help, multiple lines
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
|
|---|