Rudy’s OBTF Rudolf Adamkovič

Home / Lua / In-pattern balanced expression


Example

to capture all parenthesized expressions:

return string.match("A (B) C", "%b()")
(B)

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