开发者

oracle sql hints pattern match using java

开发者 https://www.devze.com 2023-03-16 08:52 出处:网络
I want regular expression to match the any of the following hints or others in the sql query in the 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);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号