Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Quick regexp question

by arno (Scribe)
on Oct 05, 2003 at 13:56 UTC ( #296701=note: print w/replies, xml ) Need Help??


in reply to Quick regexp question

Hi, your code is almost perfect, you've just put a '/' at the end of your pattern :
$a =~ s{\b([A-Z]{4,})\b}{ucfirst(lc($1))}eg;
will work

Arnaud

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://296701]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2017-02-25 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (369 votes). Check out past polls.