This will do that for you:
1 while $string =~ s/(.)(.*)\1/$1$2/gIn reply to Re:^3 Remove repeated characters from a string
by knew
in thread Remove repeated characters from a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |