Neatest way to do a case insensitive "in"?
marduk at letterboxes.org
Thu Mar 19 22:28:14 CET 2009
On Fri, 2009-03-20 at 07:25 +1100, Jervis Whitley wrote:
> > if stringA.lower() in stringB.lower():
> > bla bla bla
> from string import lower
> if lower(stringA) in lower(stringB):
> # was this what you were after?
This is analogous to standing behind a perfectly functioning automobile
and pushing it everywhere you want to go.
More information about the Python-list