I am trying to write a one-liner that uses regexp to extract certain
text from html files. Basically what I have so far is this:
Basically, I want the program to search through the html files for a
specific tag, cut the tag and all of the text leading up to the
But when I run this command it replaces the original file with an
exact copy of the original file instead of the text that is supposed
to cut. The re matches correctly, but it will not span the multiple
lines of text even though I end with a /s. This same exact re works in
other programming languages with a 'dotall' to span multiple lines,
but I can't seem to get perl to do it the same way. I would really
rather use a perl 'one-liner' instead of writing a large script that
would do the same thing.
Thanks.