Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String[] regex = {
- "^select \\* from (.*) where (.*) (.*) (.*)$",
- "^select (.*) from (.*) where (.*) (.*) (.*)$",
- "^select \\* from (.*)$",
- "^select (.*) from (.*)$"
- };
- private Pattern[] pattern = {
- Pattern.compile(regex[0], Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE),
- Pattern.compile(regex[1], Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE),
- Pattern.compile(regex[2], Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE),
- Pattern.compile(regex[3], Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE)
- };
- private Matcher matcher;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement