Answers

Question and Answer:

  Home  MySQL Programming

⟩ How To Use Regular Expression in Pattern Match Conditions?

If you have a pattern that is too complex for LIKE to handle, you can use the regular expression pattern condition: REGEXP. The following tutorial exercise provides you some good examples:

SELECT 'GlobalGuideLine.com' REGEXP '.*ggl.*' FROM DUAL;

1

SELECT 'GlobalGuideLine.com' REGEXP '.*com$' FROM DUAL;

1

SELECT 'GlobalGuideLine.com' REGEXP '^F.*' FROM DUAL;

1

 129 views

More Questions for you: