Up: In-pattern capture reference [Top][Contents]
to match ‘ABC’ and ‘ABCDEF’ without repeating ‘ABC’ in the pattern:
return string.match("ABC ABCDEF", "(ABC) (%1DEF)")
ABC, ABCDEF