Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

How to use \l and \u in regex mathing patterns?

by pat_mc (Pilgrim)
on May 09, 2012 at 16:22 UTC ( [id://969657]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $ perl -e '( $a = "hello" ) =~ s/^\l//; print $a'
        hello
    
  2. or download this
        $ perl -e '( $a = "Hello" ) =~ s/(.+)/\l$1/; print $a'
        hello
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://969657]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found