Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by esskar (Deacon)
on Feb 19, 2005 at 15:28 UTC ( #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? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2023-03-28 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (66 votes). Check out past polls.

    Notices?