What is the way, how to split String with special character using Java?
I have very simple captcha like this:
5 + 10
String captcha = "5 + 10";
String[] captchaSplit = captcha.split("+");
And I get error:
Exception in thread "main" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
How to fix it?
Thank you.