-3
检索值什么是正则表达式中postgres
环境评估从下面的字符串值:reg表达式从数据
"((x.y.z == "test") OR (a.b.c intersects "test1") OR OR (pub.custom.channel intersects "test2,test3"))"
需要输出为:test,test1,test2,test3
检索值什么是正则表达式中postgres
环境评估从下面的字符串值:reg表达式从数据
"((x.y.z == "test") OR (a.b.c intersects "test1") OR OR (pub.custom.channel intersects "test2,test3"))"
需要输出为:test,test1,test2,test3
您可以使用此:
regexp_replace(subject, '(?:\A[^"]*)?"([^"]+)"[^"]+(?:"([^"]+)"[^"]*\Z)?', '\1,\2', 'g')
谢谢,它给我所期望的。 –
在什么语言/环境/工具? –