There's more than one way to do things | |
PerlMonks |
Regular expression for grabbing strings with multiple lines between tagsby Max_NL (Novice) |
on Apr 05, 2016 at 09:25 UTC ( [id://1159602]=perlquestion: print w/replies, xml ) | Need Help?? |
Max_NL has asked for the wisdom of the Perl Monks concerning the following question: I'm trying to extract strings from a data file where the to be extracted information is between tags.
What I want to extract is the strings between <tag1> and <tag2> tags.
It should print:
Instead it only prints [abcd] and [ijkl], the r.e. does not work if the string in <tag2> has multiple lines. I'm overlooking something but don't know what... :(
Back to
Seekers of Perl Wisdom
|
|