How To Use Regular Expression In Pattern Match Conditions
Posted by Manish
7 Jan, 2012
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; 1SELECT 'GlobalGuideLine.com' REGEXP '.*com$' FROM DUAL; 1SELECT 'GlobalGuideLine.com' REGEXP '^F.*' FROM DUAL; 1
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; 1SELECT 'GlobalGuideLine.com' REGEXP '.*com$' FROM DUAL; 1SELECT 'GlobalGuideLine.com' REGEXP '^F.*' FROM DUAL; 1
Comments Received:
Please give your suggestions and feedback: