We don't bite newbies here... much | |
PerlMonks |
Re: replace a string multiple timesby igelkott (Priest) |
on Nov 16, 2014 at 09:58 UTC ( [id://1107337]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|