mysql PREG_CAPTURE examples Example: mysql regexp match word SELECT * FROM table WHERE keywords REGEXP '[[:<:]]rid[[:>:]]'