I can't seem to replace a string of ":)" to something else, here is my code:
if(message.contains(":)")) message = message.replaceAll(":)", replacement);
This is the error:
Exception in thread "Listen" java.util.regex.PatternSyntaxException: Unmatched closing ')'
near index 0
:)
^
What should I do?