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!

Nested regexp_replace

517761May 8 2009 — edited May 8 2009
I know this has probably been asked and answered but I couldn't find an exact thread to help me ..

can this be done in a single regexp_replace (i.e. not as the nested example I have):
with t as (
select '/p <p><table cellspacing="0" cellpadding="2" width="931" border="0"><tbody>Hello World' b from dual
)
select regexp_replace(regexp_replace(b,'<.*?>'), '/p') 
from t

R            
------------ 
 Hello World 
basically I want to replace/remove any html/xml tags as well as a second pattern, '/p' in this case.
What is the syntax to supply multiple patterns in a single regexp_replace expression, or is the way I have it correct?

thanks
This post has been answered by rbglossip on May 8 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 5 2009
Added on May 8 2009
2 comments
1,442 views