Personal website 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)")

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