[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Match the beginning of the string with lpeg
- From: "Peter Cawley" <lua@...>
- Date: Sat, 1 Nov 2008 20:15:24 +0000
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
>