Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: addd spaces after caps & reduce whitespace to single space

by esskar (Deacon)
on Feb 19, 2005 at 15:28 UTC ( [id://432729]=note: print w/replies, xml ) Need Help??


in reply to addd spaces after caps & reduce whitespace to single space

1:
my $text = "HelloMyNameIsJake"; $text =~ s!(.)([A-Z])!$1 $2!g; print "[$text]";
2:
my $text = "So much spaces,\t\t\t\t\t\ttabs and\n\n\n\n\n\n\ +n newlines"; $text =~ s!\s+! !g; print $text;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found