Home / Lua / In-pattern capture reference
Example
to match ABC
and ABCDEF
without repeating ABC
in the pattern:
return string.match("ABC ABCDEF", "(ABC) (%1DEF)")
Home / Lua / In-pattern capture reference
to match ABC
and ABCDEF
without repeating ABC
in the pattern:
return string.match("ABC ABCDEF", "(ABC) (%1DEF)")