Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

REGEXP_REPLACE exact match

User_C2APFFeb 22 2022

Hello,
I am tryting to replace multiple strings with NULL. while doing this exercise I am facing challange like when I am trying to replace specific string the other non-matching strings are also getting replaced. can some one please help me how to achieve this. I have already reviewed many threads before posting this question but I am still not able to acheive this.

for example my string containts XXACB. or GL. or AP. or AR. etc I need to replace them with NULL.
With my current REGEXP_REPLACE( text, 'XXACB.|GL. |AP.|AR., '') this is not working and its replacing in other places also. could some one please help me with this?

Comments
Post Details
Added on Feb 22 2022
6 comments
1,488 views