REGEXP

suggest change

MySQL REGEXP tests whether a string matches a regular expression. It is not standard SQL, and it is not anchored: the pattern may match any part of the string. 'beam' matches [a-f] because it contains a, b, and e.

SELECT 'bedded' REGEXP '[a-f]' -- returns 1

SELECT 'xyz' REGEXP '[a-f]' -- returns 0

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents