Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Regex Typecase

by wind (Priest)
on Aug 14, 2007 at 02:03 UTC ( #632363=note: print w/replies, xml ) Need Help??


in reply to Regex Typecase

Or if you favor a style using functions:
$data =~ s/(\w+)/ucfirst lc $1/eg;

I'd personally stick with merlyn's example though.

- Miller

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2022-11-28 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?