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.
是否存在现有的 PL/SQL 方法,它接受一个字符串并返回相同的字符串,但在任何正则表达式字符之前都有反斜杠?
试试这个:
result := REGEXP_REPLACE(subject, '([$^[()+*?{\|])', '\\\1', 1, 0, 'c');