Hi, i'm trying to do a substring in a string.. using:
txt.replaceAll(":(", "SAD");
but get an error
"Exception in thread "AWT-EventQueue-0" java.util.regex.PatternSyntaxException: Unclosed group near index 2
:("
or when i use:
txt.replaceAll(":(", "HAPPY");
I get the error:
"Unmatched closing ')' near index 0 :)"