[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Matching a character or the end of a line/string
- From: Geoff Leyland <geoff_leyland@...>
- Date: Fri, 29 Jun 2012 10:07:52 +1200
When you're parsing csv files, it would be useful to look for the end of a field with the pattern "[,$]" so that you can find the end of the last field as well as the ends of the previous fields. Trouble is, this doesn't seem to work. Can anyone tell me what I'm missing?
(I looked at  and as far as I can tell, that code expects the last field to end with a comma)