Rudy’s OBTF Rudolf Adamkovič

Home / Lua / In-pattern frontier expression


Example

to find the index of the first non-letter character:

index, _ = string.find("ABC-CEF", "%f[^%a]")
return index
4

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