regexp_extract_all(string, pattern)

Return all matches found for the regular expression as a Lua table.

Example

t = regexp_extract_all("How much food does a barbarian eat?", "foo|bar" )