PiggiesGoSqueal

chat.txt

Jan 5th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.51 KB | None | 0 0
  1. # Limiting repeating characters to 4 repeats maximum.
  2. # Does NOT work for multiple letters/characters repeating such as: lololololololol
  3. # Only works for things like: "aaaaaaaaaaaaaaaaaaaaaaaaaaaa" or "...................."
  4. match (.)(?=([a-z])\1{3})
  5. then replace
  6.  
  7. # replaces things like lollollollollollollol with max of 4 characters.
  8. match (..)(?=([a-z])\1{3})
  9. then replace
  10.  
  11. match (...)(?=([a-z])\1{3})
  12. then replace
  13.  
  14. match (....)(?=([a-z])\1{3})
  15. then replace
  16.  
  17. match (.....)(?=([a-z])\1{3})
  18. then replace
Advertisement
Add Comment
Please, Sign In to add comment