Regex
Functions
regex
Create a regex instance with a given pattern.
---@param pattern string
function regex(pattern): regex Types
find_all
---@param subject string
function regex:find_all(subject): string[][] Example
local r = regex('a*b')
print(r.find_all('aaab aab ab')) -- {{"aaab"}, {"aab"}, {"ab"}}