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!

remove white space from numbers only?

AyhamDec 24 2012 — edited Jan 6 2013
Hi All,
how can i remove the spaces by regular expression from string only between numbers but if letters no need to remove spaces.

if the string has numbers like this
12 45
remove the white space but in charachter no need to remove white space.
select (' Hello to oracle  11  .  2.    1  ') from dual,  

select (' Hello to oracle  11   2     1  ') from dual,  
the expected reults is
Hello to oracle  11.2.1  
Hello to oracle  1121  
帖子经 Ayham编辑过
This post has been answered by Karthick2003 on Dec 24 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 3 2013
Added on Dec 24 2012
16 comments
2,333 views