Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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
Replies are listed 'Best First'.
Re^2: making regex case insensitive
by shawnhcorey (Friar) on Jul 16, 2013 at 22:45 UTC

    There is also:


    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.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-11-25 05:37 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (671 votes), past polls