Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我REGEX_REPLACE在 Oracle 10g 中使用方法,但它没有替换字符串。
REGEX_REPLACE
这是我正在(不成功)尝试的:
Select REGEX_REPLACE('Mathew, Sajan K ext (E IT S US 1)','\\([^\\)]+\\)','') "REGEXP_REPLACE"
试试这个:
Select REGEX_REPLACE('Mathew, Sajan K ext (E IT S US 1)','\([^\)]+\)','') "REGEXP_REPLACE"
请注意,我刚刚删除了多余的转义字符\,有些语言似乎要求您双重转义,有些则不需要。
\
参考:Oracle SQL 数据库参考 REGEX_REPLACE