Is there an existing PL/SQL method which takes a string and returns the same string but with backslashes preceding any regexp chars?
Try this:
result := REGEXP_REPLACE(subject, '([$^[()+*?{\|])', '\\\1', 1, 0, 'c');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With