I've got this css string
var cssString = 'scale(0.95,0.95) rotate(45deg) translate(10px,11px)';
I want to use regex to return an array looking like this:
var array = ['scale(','0.95',',','0.95',') rotate(','45','deg) translate(','10','px,','11','px)'];
my last attempt:
var array = cssString.match(/([ a-zA-Z])*(\d*[.]?\d*)*/g);
I'm struggeling to have the first group match the parantheses aswell. How do I make this happen?