You wrote "string" in the title and your question includes a quoted string but still, asking for "int" makes me wonder if you really meant that you're looking for integers. Seems unlikely, but here's a solution, just in case:
s/(\d+)/$1 $1 $1/g;
In reply to Re: replace a string multiple times
by igelkott
in thread replace a string multiple times
by amar712
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |