looking for data on csv files
faulkner
faulkner612 at comcast.net
Mon Aug 28 16:00:57 EDT 2006
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..
More information about the Python-list
mailing list