Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: making regex case insensitive

by shawnhcorey (Pilgrim)
on Jul 16, 2013 at 22:45 UTC ( #1044673=note: print w/ replies, xml ) Need Help??


in reply to Re: making regex case insensitive
in thread making regex case insensitive

There is also:

/(?i:test)/

This is especially useful if you want part of the pattern case-sensitive and part not. For example, the first letter may be upper or lowercase but the rest must be lowercase.

/(?i:t)est/


Comment on Re^2: making regex case insensitive
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-11-23 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (129 votes), past polls