Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1.     private String[] regex = {
  2.         "^select \\* from (.*) where (.*) (.*) (.*)$",
  3.         "^select (.*) from (.*) where (.*) (.*) (.*)$",
  4.         "^select \\* from (.*)$",
  5.         "^select (.*) from (.*)$"
  6.     };
  7.     private Pattern[] pattern = {
  8.             Pattern.compile(regex[0], Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE),
  9.             Pattern.compile(regex[1], Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE),
  10.             Pattern.compile(regex[2], Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE),
  11.             Pattern.compile(regex[3], Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE)
  12.     };
  13.     private Matcher matcher;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement