amar712 has asked for the wisdom of the Perl Monks concerning the following question:
I would like to replace "int" with "int int int" in a file practice.py. The below code is not working.
perl -p -i -e "s/int/int{3}/g" practice.py;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: replace a string multiple times
by aitap (Curate) on Nov 15, 2014 at 08:10 UTC | |
Re: replace a string multiple times
by choroba (Cardinal) on Nov 15, 2014 at 08:12 UTC | |
Re: replace a string multiple times
by Loops (Curate) on Nov 15, 2014 at 11:25 UTC | |
Re: replace a string multiple times
by AnomalousMonk (Archbishop) on Nov 15, 2014 at 09:31 UTC | |
Re: replace a string multiple times
by Anonymous Monk on Nov 15, 2014 at 08:11 UTC | |
Re: replace a string multiple times
by igelkott (Priest) on Nov 16, 2014 at 09:58 UTC |
Back to
Seekers of Perl Wisdom