Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: making regex case insensitive

by scorpio17 (Monsignor)
on Jul 16, 2013 at 14:15 UTC ( #1044616=note: print w/ replies, xml ) Need Help??


in reply to making regex case insensitive

if ($array_A[$ds] =~ /test/i)


Comment on Re: making regex case insensitive
Download Code
Re^2: making regex case insensitive
by shawnhcorey (Pilgrim) on Jul 16, 2013 at 22:45 UTC

    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/

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2014-08-20 07:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (106 votes), past polls