... I was trying to do s/(\w)$1+//; ...
Had you given this information in addition to the info you gave in the OP, it would have been most helpful in addressing your problem. Please always try to give some indication of what you have tried, how it failed, what you expected, etc. Please see How do I post a question effectively?.
Give a man a fish: <%-{-{-{-<
In reply to Re^3: How to remove all repeating characters in a string in place
by AnomalousMonk
in thread How to remove all repeating characters in a string in place
by punitpawar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |