mndoci has asked for the wisdom of the Perl Monks concerning the following question:
Say I have a text file which includes the following lines
----------------------
This line has a printf and is
multiline
This line has printf and is one line
This line will not be printed
----------------------
I want to print out every line with "printf" in it, but I want to report the multiline line completely, i.e the output should look like
This line has a printf and is
multiline
This line has printf and is one line
mndoci
"What you do in this world is a matter of no consequence. The question is, what can you make people believe that you have done?"-Sherlock Holmes in 'A study in scarlet'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex across multiple lines
by kvale (Monsignor) on Jun 28, 2002 at 05:34 UTC | |
by mndoci (Scribe) on Jun 28, 2002 at 05:47 UTC | |
by Hofmator (Curate) on Jun 28, 2002 at 09:51 UTC | |
|
Re: regex across multiple lines
by frankus (Priest) on Jun 28, 2002 at 09:08 UTC | |
by mndoci (Scribe) on Jun 29, 2002 at 06:17 UTC |