lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> 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"