abhishes has asked for the wisdom of the Perl Monks concerning the following question:
regards,use warnings; use strict; $_ = 'The The duplicate duplicate string string ..'; s/\b((\w)+ | (.)+) \1\b/$1/g; print "$_\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: duplicate string with regular expression
by BrowserUk (Patriarch) on Dec 03, 2002 at 05:14 UTC | |
|
Re: duplicate string with regular expression
by BUU (Prior) on Dec 03, 2002 at 05:08 UTC | |
|
Re: duplicate string with regular expression
by pg (Canon) on Dec 03, 2002 at 05:42 UTC |