[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lpeg.C append tab character to capture
- From: Philippe Rathé <prathe@...>
- Date: Sat, 30 Jun 2012 18:43:13 -0400
Hello Roberto,
Interesting, I've just read on returning multiple values. So in order
to get a string I'm doing:
table.concat({word:match('word')})
Thanks.
On Sat, Jun 30, 2012 at 5:51 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> Hello lpeg folks,
>>
>> Is lpeg.C suppose to append a tab after a match?
>>
>> local word = lpeg.C'wo' * lpeg.C'rd'
>> print(word:match('word'))
>>
>> wo\trd
>>
>> Note that \t is the tab character (ascii 09).
>> How can I get rid of it?
>
> Function 'print' adds a tab between multiple values being printed.
>
> -- Roberto
>
--
-- Philippe