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!

Regular expression matches string starts with &

fatehcis-JavaNetMay 9 2013 — edited May 9 2013
Hello,

I am trying to write a Reg Exp that removes any string starts with "&" and Ends with ";" . In other words, I am trying to remove anything similar to:
 & nbsp;  & quot; & lt; & gt;  
Any help please.
This does not work:
select regexp_replace(ename, '^&[a-z]{2,4}[;]$') from emp;
Regards,
Fateh
This post has been answered by jeneesh on May 9 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 6 2013
Added on May 9 2013
5 comments
376 views