I am not so good with regular expressions but i still want to learn and understand it correctly
I want to regex a SQL statement. I only want that my sql string contains, a SELECT, SHOW and DESCRIBE and of course at the and a ;
i am coding in Java at it looks like this atm:
Code:
... Pattern p = Pattern.compile("^(SELECT|SHOW|DESCRIBE).*;$"); ...