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?
As per documentation,
\bis supported.Use
See Note: