Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Limiting repeating characters to 4 repeats maximum.
- # Does NOT work for multiple letters/characters repeating such as: lololololololol
- # Only works for things like: "aaaaaaaaaaaaaaaaaaaaaaaaaaaa" or "...................."
- match (.)(?=([a-z])\1{3})
- then replace
- # replaces things like lollollollollollollol with max of 4 characters.
- match (..)(?=([a-z])\1{3})
- then replace
- match (...)(?=([a-z])\1{3})
- then replace
- match (....)(?=([a-z])\1{3})
- then replace
- match (.....)(?=([a-z])\1{3})
- then replace
Advertisement
Add Comment
Please, Sign In to add comment