Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Capitalize First Letter of Each Word

by rev_1318 (Chaplain)
on Jun 30, 2005 at 10:07 UTC ( [id://471325]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Capitalize First Letter of Each Word
in thread Capitalize First Letter of Each Word

or just:
... s/\b(\w)(\w*)/\U$1\L$2/g ...
no need for /ie...

Paul

Replies are listed 'Best First'.
Re^3: Capitalize First Letter of Each Word
by inman (Curate) on Jun 30, 2005 at 10:17 UTC
    and the \b isn't needed either as the regex will match as many word characters as possible each time.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://471325]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.