MySQL Regular Expression Functions
This page lists the Regular Expression functions and operators in MySQL.
-
NOT REGEXP
Use MySQL NOT REGEXP to select strings that do not match a pattern; NULL operands return NULL, not true. -
NOT RLIKE
MySQL NOT RLIKE is a synonym for NOT REGEXP and selects strings that do not match a regular expression. -
REGEXP
Use MySQL’s REGEXP operator to test a string against a regular expression; see its return values, collation behavior, and REGEXP_LIKE() alternative. -
REGEXP_INSTR
The MySQLREGEXP_INSTR()function searches a string for a substring that match a specified regular expression and returns the index of the substring. -
REGEXP_LIKE
Use MySQL REGEXP_LIKE() to test a string against a regular expression, control case sensitivity, and interpret match results. -
REGEXP_REPLACE
The MySQLREGEXP_REPLACE()function replaces each substring of the text String that matches the given regular expression with the given replacement. -
REGEXP_SUBSTR
The MySQLREGEXP_SUBSTR()function extracts a substring from a string that matches the specified regular expression and returns it. -
RLIKE
MySQL RLIKE is a synonym for REGEXP; test string patterns with its operator syntax and review collation-sensitive matching.