while () { print if /^ {5}Paragraph2:$/ .. /^ {5}Paragraph\d+:$/; }