Hi
I want to look through a string, and if I find n repeated characters, I want to replace them with m of the same character. Probably a simple regexp for a monk?
e.g., if n=4 and m=1 then... p8888er9999l --> p8er9l
if n=1 and m=3 monks --> mmmooonnnkkksss
Thanks
In reply to repeated characters in regular expressions by AmnonM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |