Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: perl regex with '\s+'

by emcb (Beadle)
on Jun 09, 2002 at 01:32 UTC ( #172862=note: print w/ replies, xml ) Need Help??


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


Comment on Re: perl regex with '\s+'
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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://172862]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2015-07-28 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls