[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Patterns: Why are anchors not character classes?
- From: Geoff Leyland <geoff_leyland@...>
- Date: Wed, 15 Jul 2015 07:28:03 +1200
> I ran into this couple of times and found that the frontier pattern
> can do this job:
>
> ps:gmatch("(%d+)%f[^%d]")
I’m sure you know this Paul, but if you are reading CSV and you wish to know which field you’re reading, the frontier pattern breaks down when there are empty fields like in "1,2,,4,5"