Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file SListener.java you have to find this:
- String patternn = "([^\\.])\\1{2,}";
- Change it with:
- String patternn = "([\\D])\\1{3,}";
- Now it gets everything except numbers.
- Also, you can remove this lines:
- String dot = "(\\.)\\1{3,}";
- and
- String msg = msg1.replaceAll(dot, "...");
- and last, change:
- String msg1 = rawmsg.replaceAll(patternn, r);
- to
- String msg = rawmsg.replaceAll(patternn, r);
- That's it. :))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement