[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lpeg.C append tab character to capture
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sat, 30 Jun 2012 18:51:32 -0300
> 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