in reply to Regex with malformed CSV files
For example, most fields will probably not have embedded newlines in them; a zip code will probably not have embedded quotes or commas and will probably be short; email addresses will tend to have '@' in them; quoted fields will probably not strech 100's of characters; etc.
If you enforce some rules like this, your parser may be able to determine most of the time where it is. Of course, you could go stark raving mad in a futile effort trying to figure out the perfect ruleset...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex with malformed CSV files
by Anonymous Monk on Jan 10, 2006 at 21:16 UTC |