I am using Google App Script..

```
var string = "Test 11x Test22x Test 33x";
var multiplier = 4;

```

What I want to do is extract all numbers from string and multiply them by the multiplier.. so the desired output should be `"Test 44x Test88x Test 132x"`

I tried

```
var pattern = /(\d+)[^0-9]*/g;
var result = pattern.exec(text);

```

but it is returning only the first set of numbers.. How do I return all numbers and then multiply them, please?