Re: looking for data on csv files

2006-08-28 Thread Bruno Desthuilliers
flit a écrit : > 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 > "" Python 2

Re: looking for data on csv files

2006-08-28 Thread faulkner
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" >

looking for data on csv files

2006-08-28 Thread flit
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 PUItar