moissinac / csvfix

Automatically exported from code.google.com/p/csvfix
MIT License
0 stars 0 forks source link

find command does not work with empty fields #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
i have a CSV file where certain fields will sometimes be empty
ex
"A","","","","","","false","true"
"B","","","","","","false","true"
"C","","","","","","false","true"
"C","","","notempty","","","false","true"

I would expect the follwoing command to find all rows whose -f 4 is not ""
csvfix find -e '.*' -f 4 file.csv

however i get the following error: 
ERROR: String start out of range: 0

Original issue reported on code.google.com by mike.wys...@gmail.com on 25 May 2010 at 9:24

GoogleCodeExporter commented 8 years ago
I don't want to stop people using the issue tracker to add issues, but I think 
it
would be much better if all issues were discussed in the support forum at 
http://groups.google.com/group/csvfix before they are entered here. You have a 
valid
and important problem, but I'm afraid I will not discuss solutions in the issue 
tracker.

Original comment by nbutterworth1953@gmail.com on 26 May 2010 at 8:58

GoogleCodeExporter commented 8 years ago
This is a bug in the alib regex code - I'm working on a fix.

Original comment by nbutterworth1953@gmail.com on 27 May 2010 at 12:01

GoogleCodeExporter commented 8 years ago
fixed in 0.97, which will be out shrtly

Original comment by nbutterworth1953@gmail.com on 4 Jul 2010 at 6:53