xf86 has asked for the wisdom of the Perl Monks concerning the following question:
I was wandering if someone could help me do something like this... if I have a file with...
<begin> blah,blah,blah,blah,blah gohere <end>
How can I have it search for the 1st line between <begin> and <end> and then if it finds something go to the next line between those tags and read that in to a variable? I'd really appriciate any help. Thanks.
Ben
Edited 2001-04-04 by mirod: added p and code tags and < and > entities
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern Matching Question (I think)
by Masem (Monsignor) on Apr 04, 2001 at 17:03 UTC | |
|
Re: Pattern Matching Question (answer, I think)
by OeufMayo (Curate) on Apr 04, 2001 at 17:06 UTC | |
|
Re: Pattern Matching Question (I think)
by davorg (Chancellor) on Apr 04, 2001 at 17:05 UTC | |
|
Re: Pattern Matching Question (I think)
by suaveant (Parson) on Apr 04, 2001 at 16:55 UTC |