I have a file containing some lines which look like this:-

```
DUMMY name, 4, 6, 5*0, 34, 322552
DUMMY same, 4, 6, 2*2, 34, 322552

```

I want to replace all instances of `"m*n"` with `m` repeated values of `n`, i.e. replace `"5*0,"` with `"0, 0, 0, 0, 0,"`, and `"2*2"` with `"2, 2,"`, so the output for the above lines should look like:-

```
DUMMY name, 4, 6, 0, 0, 0, 0, 0, 34, 322552
DUMMY same, 4, 6, 2, 2, 34, 322552

```

So far I have managed to identify all instances of "m\*n" and can replace with m or (in the line below) n using sed:-

```
sed -r 's/([0-9])(\*)([0-9]),/\3,/g'

```

but I can't work out how to make it repeat the regex `\3 m` times.