I was writting a regex to capture the mysql query execute in proxysql.
my expectation of the regex will capture the following commend where email, password, or both of them appear together:
SELECT email FROM user_tbl
SELECT password FROM user_tbl
SELECT col1, email FROM user_tbl
SELECT email, password FROM user_tbl
but with my regex it only capture 1 time my regex will be like this
^SELECT\s(.*)(email|password)(.*)FROM\suser_tbl
Is it possible archive what i want ?
A regex which could capture various element