REGEXP

MySQL >= 3.19

檢查字串是否與正規表示式匹配(由另一個字串定義)。

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

SELECT 'beam' REGEXP '[a-f]' -- returns False