Regex word-boundary not working as expected

Viewed 50

I'm trying replace CT with COURT regardless of where it appears in a string (using Snowflake SQL). I would expect this to work:

select
    regexp_replace('36 HERITAGE CT', '\bCT\b', 'COURT'),
    regexp_replace('36 HERITAGE CT #204', '\bCT\b', 'COURT')

But the output is always 36 HERITAGE CT no matter what I do.

Anyone know what I'm doing wrong?

1 Answers
Related