http://qs321.pair.com?node_id=1107337


in reply to replace a string multiple times

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;