REGEXP_SUBSTR
Return the substring matching a regex. This function extracts the actual part of the string that matches the given pattern.
Syntax
REGEXP_SUBSTR(subject,pattern)Description
Examples
SELECT REGEXP_SUBSTR('ab12cd','[0-9]+');
-> 12
SELECT REGEXP_SUBSTR(
'See https://mariadb.org/en/foundation/ for details',
'https?://[^/]*');
-> https://mariadb.orgLast updated
Was this helpful?

