【发布时间】:2021-01-06 23:07:03
【问题描述】:
我正在寻求一些帮助来调试 Snowflake 中的 REGEXP_REPLACE() 语句。
我想用#替换双引号字符串之间的|(pipe)。
例子:
"Foreign Corporate| Name| Registration"|"99999"|"Valuation Research"
要求的结果:
"Foreign Corporate# Name# Registration"|"99999"|"Valuation Research"
我已经尝试使用 (?!(([^"]"){2})[^"]*$)[|] 和 substitution\1# 进行 regex101.com,工作正常,但在 Snowflake 中不起作用。
【问题讨论】:
标签: snowflake-cloud-data-platform