in reply to regex : get a paragraph, not just line

Another option is to set $/ to the empty string which enables paragraph mode, a full paragraph up to the next empty line is read.

Replies are listed 'Best First'.
Re^2: regex : get a paragraph, not just line
by sauoq (Abbot) on Mar 18, 2015 at 21:55 UTC

    Which is great, if the text he wants is actually separated by empty lines. He didn't say it was. But then, he didn't say it wasn't either.

    -sauoq
    "My two cents aren't worth a dime.";