Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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??

Help for this page

Select Code to Download


  1. or download this
    my $text = "HelloMyNameIsJake";
    $text =~ s!(.)([A-Z])!$1 $2!g;
    print "[$text]";
    
  2. or download this
    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 pondering the Monastery: (5)
As of 2024-03-28 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found