This time I don't know how to write regular expression to match :
String sql = "select * from user where username='" + username +"' and password='" + password + "'";
what I want exactly is:
1- match word select (ignore cases).
2-if that line match then save the variable name(which sql in my example above) save it in String test.
3-make another regular expression to match test (from step 2) into any other line.