I'm trying to turn a string with some information about changes in values into an object with these information separated (or an array with them).
The string I receive is something like this format, representing the changes:
{xRate=(250.0, 260.0), yValue=(1.51, 1.54)}.
I would like to get something like
[['xRate', '(250.0, 260.0)'],['yValue', '(1.51, 1.54)']]
or at least have a regex to work since I can't figure it out.
I tried
/,*\s*(.*)=\s*(.*)/
but it creates group 1 as test=(23, 34), var and group 2 as (true , false) in test=(23, 34), var=(true , false), for example.
Thanks in advance for any help!
(Also, if you know any great resource to understand regex more I'd love to see it then I learn this for good haha)