Mega Code Archive

 
Categories / MySQL / Regular Expression
 

The primary options that you can use with the REGEXP operator to create expressions in your SQL statements

Options             Meaning                                <value>             The tested value must contain the specified value. <^>                 The tested value must not contain the specified value. .                   The tested value can contain any individual character represented by the period (.). [<characters>]      The tested value must contain at least one of the characters listed within the brackets. [<range>]           The tested value must contain at least one of the characters listed within the range of values enclosed by the brackets. ^                   The tested value must begin with the value preceded by the caret (^) symbol. $                   The tested value must end with the value followed by the dollar sign ($) symbol. *                   The tested value must include zero or more of the character that precedes the asterisk (*).