msemtd has asked for the wisdom of the Perl Monks concerning the following question:
Hi people,
I require a one-liner to extract all the lines between two regexes in all the html files I have in a directory -- I know its going to go along the lines of...
BTW: the end-regex wants to be non-greedy so it stops at the first occurance of end-regex.
Love, msemtd
I require a one-liner to extract all the lines between two regexes in all the html files I have in a directory -- I know its going to go along the lines of...
...but I'm not sure how say I want all lines between the lines that match start-regex & end-regex.perl -pi.bak -e "...mumble mumble something something..." *.html
BTW: the end-regex wants to be non-greedy so it stops at the first occurance of end-regex.
Love, msemtd
Back to
Seekers of Perl Wisdom