Oracle use regular expressions

Oracle using regular expressions do without these four functions:

1。regexp_like 

select t3.cert_no from table_name t3 where regexp_like(t3.cert_no, '^(\d{15}|\d{18})$')

2。regexp_substr

SELECT REGEXP_SUBSTR('first field, second field , third field', ', [^,]*,') FROM dual

3。regexp_instr

SELECT REGEXP_INSTR ('hello itmyhome', 'e') FROM dual; 

4。regexp_replace

select regexp_replace('0123456789','01234','abc') from dual;

 

Guess you like

Origin www.cnblogs.com/yinyl/p/11263353.html