re.IGNORECASE

Bryan BZ bryanbz at yahoo.com
Tue Feb 27 15:00:43 EST 2001


Why is it I want to ignore the case in my search but Python refuses to
match:

"Spam" with "spam"  OR
"ni" with "Ni"

For example (a really silly and stupid one) ...

searchresult = re.search("Monty Python", "monty Python", re.IGNORECASE)
won't match...

Ugh,
BB.





More information about the Python-list mailing list