I'm trying to use this regular expression in Java
(?<=((FROM[ \n\r]+)|(JOIN[ \n\r]+)|(APPLY[ \n\r]+)))((.?([a-zA-Z0-9_]+|([[a-zA-Z0-9._[]\s\$(){}+\?\<>|!]+])|("[a-zA-Z0-9._[]\s\$(){}+\?\<>|!]+")))+)
, to get the tables inside a SQL, and I get the following error:
Unable to execute regular expression.
java.util.regex.PatternSyntaxException:
Unclosed character class near index 147
I can't find the error.
Thanks for your help in advance