in reply to Need help with replace or substitute
output required:#!c:/perl/bin/perl $string='"the, sample, string",345,43","A, next , string",12,-90'; print "$string\n"; #######$string=~ s/<need help here>/<need help here>/g ; print "$string\n";
"the, sample, string",345,43","A, next , string",12,-90 "the# sample# string",345,43","A# next # string",12,-90'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need help with replace or substitute
by runrig (Abbot) on Apr 11, 2008 at 23:31 UTC | |
by tachyon-II (Chaplain) on Apr 12, 2008 at 12:51 UTC | |
by Anonymous Monk on Apr 13, 2008 at 10:20 UTC | |
by tachyon-II (Chaplain) on Apr 13, 2008 at 10:29 UTC | |
by Anonymous Monk on Apr 13, 2008 at 10:23 UTC | |
by Anonymous Monk on Apr 11, 2008 at 23:45 UTC |