Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am doing a regex to ensure that the array element has a pattern which I wish to search , say which is test ; so I did
if ($array_A[$ds] =~ /Test/)
which is working fine , just the thing is I want to make it case insensitive since I can encounter test , Test , TEST etc so how can I look out for all of them with regex
Thanks in advance
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: making regex case insensitive
by MidLifeXis (Monsignor) on Jul 16, 2013 at 14:08 UTC | |
Re: making regex case insensitive
by scorpio17 (Canon) on Jul 16, 2013 at 14:15 UTC | |
by shawnhcorey (Friar) on Jul 16, 2013 at 22:45 UTC | |
Re: making regex case insensitive
by marinersk (Priest) on Jul 16, 2013 at 15:41 UTC | |
Re: making regex case insensitive
by rjt (Curate) on Jul 16, 2013 at 17:13 UTC | |
by hdb (Monsignor) on Jul 17, 2013 at 06:33 UTC | |
by elTriberium (Friar) on Jul 16, 2013 at 18:32 UTC | |
by rjt (Curate) on Jul 16, 2013 at 18:59 UTC | |
by marinersk (Priest) on Jul 16, 2013 at 19:21 UTC | |
by elTriberium (Friar) on Jul 16, 2013 at 21:27 UTC | |
Re: making regex case insensitive
by mmnormyle (Initiate) on Jul 17, 2013 at 00:33 UTC |