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!

Help Needed to add Hyphen in REGEXP_REPLACE

user11334254Nov 24 2010 — edited Nov 24 2010
Hi All,
I need a help to add hyphen in my select criteria so that it does not filter the hypen.
I am using below REGEXP_REPLACE to get my output, everything is fine now except the Hyphen (-) character is not recognized.

select REGEXP_REPLACE('abcd-efgh123{}$(),', '[^[a-z,A-Z,0-9,(,),{,},_,$,.,'',[:space:]]]*','') from dual;

Can you please help?

Thanks
This post has been answered by MaximDemenko on Nov 24 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 22 2010
Added on Nov 24 2010
3 comments
1,806 views