Perl-Sensitive Sunglasses | |
PerlMonks |
regexp bugby kidd (Curate) |
on Aug 27, 2002 at 13:36 UTC ( [id://193153]=perlquestion: print w/replies, xml ) | Need Help?? |
kidd has asked for the wisdom of the Perl Monks concerning the following question:
hello monks...
I have this code that makes a search trough a lot of texts. I finished it and I tested but the I saw something, when I searched for lets say "foo" it returned true to either "foo" and "foobar"... I didnt want that! I wanted only to be true to "foo" nothing more nothing less. So, I decided to make a correction and I edited this line: to
But I test it and sometimes it works fine and other times it doesnt...Can someone tell me what Im doing wrong... And if you could tell me how can I make the search not case-sensitive... I thought that maybe I could do that like this:
THANKS
Back to
Seekers of Perl Wisdom
|
|