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!

How to remove special characters from a string.

626992Sep 6 2008 — edited Oct 7 2009
Hi Everybody,

I have a string, need to remove the special characters from this string.

i am using the translate but its not working. Its getting spaces in string.
for ex: string: 'abcde+fg'

I would like to remove this '+' symbol from this string.

1) Select translate('abcde+fg', '+/-', ' ') outp
from dual
o/p: abcde fg

2) Select translate('abcde-fg', '-+/', ' ') outp
from dual
o/p: abcde fg


Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2009
Added on Sep 6 2008
8 comments
39,921 views