[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Iterating over string with delimiter that is multiple occurrences of the same character
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 11 Oct 2013 11:16:56 -0300
> I think that single ";" need to be escaped, if I read the OP's request
> correctly.
You're right. I missed that part: "where a, b and c can be any length
and can include non repeating occurrences of ;".
This should work then:
t = s..";;"
for p in t:gmatch("(.-);;") do print(p) end