I'm trying to get a string like:
"1d6+1d12-1d20+5"
And turn it into this: "rolar('1d6')+rolar('1d12')-rolar('1d20')+5"
The gist being that the xdy should be replaced with rolar('xdy') but with the original value in that part. I've been trying to do this with string:gsub but haven't been able to mantain the original xdy value.