in reply to Re: Replacing duplicate string
in thread Replacing duplicate string
I really appreciate the help on this, it's been driving me crazy.open(MYINPUTFILE, "cos2"); $/ = ''; while (<MYINPUTFILE>) { while ( /\b([\w'-]+) (\s+\1)+\b/gi ) { sed 's/$1/bandwidth/'; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re Replacing duplicate string
by Corion (Patriarch) on Apr 15, 2009 at 18:25 UTC | |
|
Re: Re Replacing duplicate string
by apok (Acolyte) on Apr 15, 2009 at 19:03 UTC | |
|
Re: Re Replacing duplicate string
by lostjimmy (Chaplain) on Apr 15, 2009 at 18:49 UTC |