http://qs321.pair.com?node_id=172862


in reply to Re: perl regex with '\s+'
in thread perl regex with '\s+'

Thanks fellow monks. I'm still learning re's so that got me. And i think i'll start using the 'magic' open on these ones...

Elfyn

Replies are listed 'Best First'.
Re^2: perl regex with '\s+'
by Anonymous Monk on Jul 02, 2012 at 13:46 UTC
    \s+ change consecutive spaces to single spaces \s* remove all spaces altogether;