|
|
| Just another Perl shrine | |
| PerlMonks |
mutiple-line regexes?by jens (Pilgrim) |
| on Aug 19, 2002 at 05:43 UTC ( #191086=perlquestion: print w/ replies, xml ) | Need Help?? |
|
jens has asked for the
wisdom of the Perl Monks concerning the following question:
I don't have a great deal of Perl experience, so a bit of patience with this question please if it seems basic.
I recently used Perl to automate marking up some data files with HTML for inclusion in a website. This, naturally, proved much faster than coding HTML by hand! However, there was one scenario that I couldn't figure out, and wound up doing manually--I needed to remove six-line blocks of data, but only if a particular pattern existed in the fourth line. For future reference, how do you do this in Perl? Thanks very much for your reply. jens
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||