in reply to How to avoid the duplication in a string
$a =~ s/(.)\1+/$1/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to avoid the duplication in a string
by soubalaji (Sexton) on Oct 22, 2008 at 11:10 UTC | |
by jonadab (Parson) on Oct 22, 2008 at 11:39 UTC |