REGEXP_REPLACE()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
A description for this Function has not yet been added to this Documentation.
EXAMPLES
SELECT REGEXP_REPLACE('1 b 3', 'b', 2);
+---------------------------------+
| REGEXP_REPLACE('1 b 3', 'b', 2) |
+---------------------------------+
| 1 2 3 |
+---------------------------------+
SELECT REGEXP_REPLACE('aaa bbb ccc', '[a-c]+', '*');
+----------------------------------------------+
| REGEXP_REPLACE('aaa bbb ccc', '[a-c]+', '*') |
+----------------------------------------------+
| * * * |
+----------------------------------------------+
SELECT REGEXP_REPLACE('aaa abc bbb abc ccc abc', '[a-c]+', '*');
+----------------------------------------------------------+
| REGEXP_REPLACE('aaa abc bbb abc ccc abc', '[a-c]+', '*') |
+----------------------------------------------------------+
| * * * * * * |
+----------------------------------------------------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.