[ORACLE] 오라클 regexp_replace 정규표현식 - 전화번호, Email 마스킹 예제
select REGEXP_REPLACE(REGEXP_REPLACE(tel, '(02|.{3})(.+)(.{4})', '\1-\2-\3'), '(.{3})(.*)(.{4})', '\1-****-\3') as tel1 -- 결과: 010-****-4567 ,REPLACE(REGEXP_REPLACE(REGEXP_REPLACE(tel, '(02|.{3})(.+)(.{4})', '\1-\2-\3'), '(.{3})(.*)(.{4})', '\1-****-\3'),'-','') as tel2 -- 결과: 010****4567 from dual select REGEXP_REPLACE('test@test.co.kr' , '([[:alnum:]]+)(@[[:alnum:]]+(\.[[:alnum:]]+)+)','******..
2023. 8. 3.