Hi,
I want to get a correct regular expression for the string ")
Here is how I am doing it
String regex1 = "\"\)";
matcher = matcher.usePattern(Pattern.compile(regex1,Pattern.CASE_INSENSITIVE));
But i get this runtime error :
Exception in thread "main" java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 0
")
^
Thanks
I want to get a correct regular expression for the string ")
Here is how I am doing it
String regex1 = "\"\)";
matcher = matcher.usePattern(Pattern.compile(regex1,Pattern.CASE_INSENSITIVE));
But i get this runtime error :
Exception in thread "main" java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 0
")
^
Thanks