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/'; } }
In reply to Re Replacing duplicate string
by ddrew78
in thread Replacing duplicate string
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |