Rudy’s OBTF Rudolf Adamkovič

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)")
ABC, ABCDEF

© 2025 Rudolf Adamkovič under GNU General Public License (GPL) version 3 or later.
Made with Emacs and secret alien technologies of yesteryear.