Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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


Comment on Re: Quick regexp question
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2014-12-26 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (167 votes), past polls