> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/sql-functions/string-functions/regular-expressions-functions.md).

# Regular Expressions Functions

{% columns %}
{% column %}
{% content-ref url="/pages/YIjMIvTOqnzSbXP77358" %}
[Regular Expressions Overview](/docs/server/reference/sql-functions/string-functions/regular-expressions-functions/regular-expressions-overview.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Get an overview of regex usage. This page introduces the pattern matching capabilities and common metacharacters used in MariaDB regular expressions.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/CsxYkKYAV4gGQ0hDl8pu" %}
[PCRE - Perl Compatible Regular Expressions](/docs/server/reference/sql-functions/string-functions/regular-expressions-functions/pcre.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Understand MariaDB's regex support. This concept page explains the PCRE library integration, detailing supported syntax, character classes, and special characters.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/qhLNAJ5Rzl7qrM1TuDIQ" %}
[REGEXP](/docs/server/reference/sql-functions/string-functions/regular-expressions-functions/regexp.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Complete REGEXP operator reference: expr REGEXP/RLIKE pat syntax, 1/0/NULL return values, NOT REGEXP aliases, BINARY case-sensitivity, default\_regex\_flags.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/av7D3YWjgfeDazR5HvuT" %}
[NOT REGEXP](/docs/server/reference/sql-functions/string-functions/not-regexp.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Negated regular expression matching. This operator tests whether a string does NOT match a specified regular expression pattern.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/x9NAKKe19968miC5P6hh" %}
[REGEXP\_INSTR](/docs/server/reference/sql-functions/string-functions/regular-expressions-functions/regexp_instr.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Return the index of a regex match. This function finds the starting position of the first substring that matches the given pattern.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/Ed65mhgE7E5hZp597cWa" %}
[REGEXP\_REPLACE](/docs/server/reference/sql-functions/string-functions/regular-expressions-functions/regexp_replace.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Replace regex matches in a string. This function substitutes occurrences of a pattern with a specified replacement string.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/vUvqZyap94cv6ilL60js" %}
[REGEXP\_SUBSTR](/docs/server/reference/sql-functions/string-functions/regular-expressions-functions/regexp_substr.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Return the substring matching a regex. This function extracts the actual part of the string that matches the given pattern.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/OlTn9SuvEFspnsPhTvI5" %}
[RLIKE](/docs/server/reference/sql-functions/string-functions/regular-expressions-functions/rlike.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Synonym for REGEXP. This operator performs a regular expression match against a string argument.
{% endcolumn %}
{% endcolumns %}
