MySQL regexp_substr() function is used for pattern matching. It returns the substring from the given string.
select regexp_substr('str', 'match_type', occurrence, position, );select regexp_substr('java t point', '[a-z]+', 2, 3);Output:
select regexp_substr('my sql function', '[a-z]+', 1, 3);Output:
