in reply to Re^2: Simple regex with numbers
in thread Simple regex with numbers

\s+ should match new lines, so skeeve's example should still work. Unless you are reading in from a file, and are only reading one line at a time, in which case you would need to slurp the entire file in and then use skeeve's example.

May the Force be with you

Replies are listed 'Best First'.
Re^4: Simple regex with numbers
by Jasper (Chaplain) on Sep 30, 2004 at 08:54 UTC
    \s+ should only match new lines if you add the s modifier to the end of the regex.

    This is balls. Of course it is. I was thinking of '.'. Stupid me.