By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
SELECT REGEXP_REPLACE('Stackoverflow','[A-Zf]','-',1,0,'c');
REGEXP_REPLACE('Stackoverflow','[A-Zf]','-',1,0,'c') |
---|
-tackover-low |
REGEXP_REPLACE('Stackoverflow','[A-Zf]','-',1,0,'c') |
---|
-tackover-low |