Ask js regular experts to help see how to match rotate(10deg) scale(1.2), online, etc., can’t sleep

  node.js, question
var str = 'rotate(10deg) scale(1.2)';
 Varpattern =/\ ([\)] plus \)/g;
 var array = str.match(pattern);
 
 Results (10deg) (1.2)

The above one matches the brackets back, but I don’t want the brackets. How do you change them?

var str = 'rotate(10deg) scale(1.2)';
 Var pattern = /[0-9.] plus /g;
 var array = str.match(pattern);
 console.log(array);