REGEXP
suggest changeMySQL 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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents