in reply to Re: Searching for paragraphs but tricky
in thread Searching for paragraphs but tricky

I did state that it's Linux and it's not a DOS file.
  • Comment on Re^2: Searching for paragraphs but tricky

Replies are listed 'Best First'.
Re^3: Searching for paragraphs but tricky
by hippo (Archbishop) on Jul 20, 2013 at 10:21 UTC

    Hence the question. :)

    Anyway, there's nothing wrong with your syntax as this trivial example demonstrates:

    $ echo -e "CREATE TABLE WCC.CONTACT\nfoo\n;\nCREATE TABLE WCC.CONTACTM +ETHOD\nbar\n;\n" | perl -ne 'print if /CONTACT$/ .. /;/;' CREATE TABLE WCC.CONTACT foo ;

    Therefore the obvious conclusion is that your input file does not contain what you think it contains. Use a hexdump to see what's actually in there.