oracle sql hints pattern match using java
I want regular expression to match the any of the following hints or others in the sql query in the java .
1. /*+ parallel */
2. /*+ first_rows */
kindly 开发者_StackOverflow中文版let me know your comments.
What about this one?
/\*\+.*?\*/
And use DOTALL flag to let dot wildcard to match multiple lines:
Pattern pattern = Pattern.compile("/\\*\\+.*?\\*/", Pattern.DOTALL);
精彩评论