I have the following string
abc=1.2;bcd=2.4;xyz=10.9
I want to split it into the following table
{ {"abc", "1.2}, {"bcd", "2.4"}, {"xyz", "10.9"} }
I am currently doing this by splitting the strings first by ; and then by =.
In PHP I can use the following preg_match pattern to do this in a single step without iteration. Is it possible to do this in Lua?
preg_match_all("/(?:([a-z]+)=([0-9.]+)(?:;|$))/", $a, $match, PREG_SET_ORDER);