콘텐츠로 이동

정규식 패턴과 일치하는 부분 문자열을 대체 문자열로 바꿉니다.

func.regexp_replace(<str>, <pattern>, <replacement>)
func.regexp_replace('hello world', '\\s+', ' ')
┌───────────────┐
│ 'hello world' │
└───────────────┘
REGEXP_REPLACE(<str>, <pattern>, <replacement>)
SELECT REGEXP_REPLACE('hello world', '\\s+', ' ');
┌─────────────┐
│ hello world │
└─────────────┘