开发者

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);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜