Quantcast
Channel: REGEXP_REPLACE Punctuation in Redshift - Stack Overflow
Viewing all articles
Browse latest Browse all 2

REGEXP_REPLACE Punctuation in Redshift

$
0
0

I'm trying to use REGEXP_REPLACE to remove all punctuation from a varchar. I'm using the following:

regexp_replace(d.NAME, [.,\/#!$%\^&\*;:{}=\-_`~()])

But it gives me an error, saying:

Statement 1 is not valid. ERROR: syntax error at or near "."

How can I fix this to remove all punctuation?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images