Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Capitalize First Letter of Each Word

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


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 14: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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2024-03-28 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found