colon vs equals in mysql regular expression code example Example: mysql regexp match word SELECT * FROM table WHERE keywords REGEXP '[[:<:]]rid[[:>:]]'