Hello Friends
Please point me to the right direction how I can extract the table with a regex as below.
edit: i am expecting output to return 'table', but get 'nil'.
the regex extracts the fields when i test it at https://regex101.com/
Thank you
Please point me to the right direction how I can extract the table with a regex as below.
local mystring = "You are madcowchow (dark-elf, archer) aged 195 years."
local re = rex.new("^You are (?<name>\w+) \((?<tribe>\S+), (?<job>\w+)\) aged (?<age>\d+) years\.$")
local s, e, t = re:match(mystring)
print (type(t))
edit: i am expecting output to return 'table', but get 'nil'.
the regex extracts the fields when i test it at https://regex101.com/
Thank you