I have the following string
translate3d(0px, -26px, 0px) scale(1);
And I have the following regex
(\\d+)(?!.*\\d)
To match float number you can use following regex
\d+(?:\.\d+)?(?!.*\d)
Regex explanation
If the ending is always ); then you can use following regex
);
\d+(?:\.\d+)?(?=\);$)