in reply to Remove multiple lines between two patterns

If it's HTML use a suitable module. You don't tell us what you want to do with the contents of the file so it's hard to advise on the most suitable module, however HTML::TreeBuilder addresses may HTML parsing and munging needs.


True laziness is hard work
  • Comment on Re: Remove multiple lines between two patterns