【发布时间】:2012-07-28 05:01:22
【问题描述】:
我有一个表,其中包含许多行,其中的列包含 URL。 URL 的格式为:
http://one.example1.com:9999/dotFile.com
我想用 http://example2.com/dotFile.com 替换该列中的所有匹配项,同时保留 :9999 之后的所有内容。我找到了一些关于 regexp_matches 和 regexp_replace 的文档,但我不能完全理解它。
【问题讨论】:
标签: regex postgresql