in reply to use regular expressions across multiple lines from a very large input file

Did you try reading in paragraph mode ($/ = "")? That should work provided that you don't have very long paragraphs and that your search phrase can't be split through paragraphs.

  • Comment on Re: use regular expressions across multiple lines from a very large input file
  • Download Code

Replies are listed 'Best First'.
Re^2: use regular expressions across multiple lines from a very large input file
by rizzy (Sexton) on Dec 07, 2010 at 04:03 UTC
    I initially thought paragraphs might be the way to go, but these things are all formatted differently and some include html.