From 9dac0b6d8d22705f27b139923948ab050c12f6f5 Mon Sep 17 00:00:00 2001
From: Roberto Ierusalimschy re
module,
which implements patterns following a regular-expression style
(e.g., [09]+
).
-(This module is 260 lines of Lua code,
+(This module is 270 lines of Lua code,
and of course it uses LPeg to parse regular expressions and
translate them to regular LPeg patterns.)
An optional numeric argument init
makes the match
start at that position in the subject string.
-As usual in Lua libraries,
+As in the Lua standard libraries,
a negative value counts from the end.
"pattern"
.
Otherwise returns nil.
-lpeg.version ()
lpeg.version
-Returns a string with the running version of LPeg. +A string (not a function) with the running version of LPeg.
lpeg.setmaxstack (max)