Advertisement
Guest User

Untitled

a guest
Sep 1st, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. In file SListener.java you have to find this:
  2. String patternn = "([^\\.])\\1{2,}";
  3.  
  4. Change it with:
  5. String patternn = "([\\D])\\1{3,}";
  6.  
  7. Now it gets everything except numbers.
  8.  
  9. Also, you can remove this lines:
  10. String dot = "(\\.)\\1{3,}";
  11. and
  12. String msg = msg1.replaceAll(dot, "...");
  13.  
  14. and last, change:
  15. String msg1 = rawmsg.replaceAll(patternn, r);
  16. to
  17. String msg = rawmsg.replaceAll(patternn, r);
  18.  
  19.  
  20. That's it. :))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement