lua-users home
lua-l archive

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


LPEG always matches the pattern at the start of the string, you need
to explicitly tell it otherwise to match elsewhere in the string.

2008/11/1 Ali Polatel <polatel@itu.edu.tr>:
> ^^ is it possible?
> I know you can match the end of the string with -lpeg.P(1).
> Is there any way you can match a pattern only at the beginning of the
> string?
>
> --
> Regards,
> Ali Polatel
>