Perl: the Markov chain saw | |
PerlMonks |
Re^3: regular expression ignores two linesby Crackers2 (Parson) |
on Aug 20, 2009 at 12:48 UTC ( [id://790084]=note: print w/replies, xml ) | Need Help?? |
Because your regex is anchored to the start and end of the string, so it'll only find a tag that's on a line by itself:
Your {TTL} and {LINE} tags are in the middle of the line, so they won't get picked up by the regex. You could try something like this instead:
Output:
In Section
Seekers of Perl Wisdom
|
|