import re if re.search(nome, row[rowcsv], re.I): ... that's re.I [capital i] as in ignorecase.
flit wrote: > Hi! > I am using the csv modules.. > > when I use the command: > > if nome in row[rowcsv]: > print "\n" > print row[rowcsv] + "\n ----> " + row[11] + "\n" > print > "################################################################" > > there is this case: > > 1- data on file PUItarr > > If the user try to find for puitarr or PUITARR it doesn´t find. > > I tried the string.upper and .lower , but there is a a way to look far > all possible combinations? > > And yes, i am a newbie.. -- http://mail.python.org/mailman/listinfo/python-list