By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
regexp_replace('[{\/Hasta&-_}]<>mañana, señor!','[^[:alnum:]]+',' ') |
---|
Hasta mañana señor |
regexp_replace('[{\/Hasta&-_}]<>mañana, señor!','[]\[!@#$%.&*`~^_{}:;<>/\|()-]+',' ') |
---|
Hasta mañana, señor |