【发布时间】:2020-01-27 09:43:33
【问题描述】:
我正在尝试替换文本中的某些单词。但是,如果它是 url 的一部分,则不希望该词被替换。例如:技术一词。它在两个地方都被替换了(包括 url)。
select regexp_replace('Part of the Technical Network Group https://technical.com/sites/',
'technical','tech',1,0,'i')
from dual
输出:
Part of the tech Network Group https://tech.com/sites/
预期输出:
Part of the tech Network Group https://technical.com/sites/
【问题讨论】:
标签: sql oracle replace string-matching regexp-replace