REGEXP_INSTR
REGEXP\_INSTR(expr, pat[, pos[, occurrence[, return\_option[, match\_type]]]])
#Examples
mysql> SELECT regexp_instr('aa aaa aaaa', 'a{3}');
2
mysql> SELECT regexp_instr('abba', 'b{2}', 2);
2
mysql> SELECT regexp_instr('abbabba', 'b{2}', 1, 2);
5
mysql> SELECT regexp_instr('abbabba', 'b{2}', 1, 3, 1);
7
Comments