Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: regex for text manipulation

by sen (Hermit)
on Nov 07, 2007 at 07:50 UTC ( #649424=note: print w/ replies, xml ) Need Help??


in reply to Re: regex for text manipulation
in thread regex for text manipulation

hi,

The third match is the dot, then why the need of lc($3), i think $3 is enough.

$str =~ s/^(\w)(.*?)([.])(\w)(.*)/uc($1).lc($2).($3).uc($4).lc($5)/gei;


Comment on Re^2: regex for text manipulation
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2015-07-01 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?















    Results (803 votes), past polls