Suppose There is a string
A.B....C.......D.........E........F In this string dots (.)
are not having fixed count in between of string. I want the
output to have string with one dot between. I.e.
A.B.C.D.E.F

Answer Posted / sandeep kumar

select replace(regexp_replace(replace
('A.B....C.......D.........E........F','.',' '),'( )
{2,}',' '),' ','.') from dual

Is This Answer Correct ?    1 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to pipe multiline string to isql?

580


Why do we use cursors?

511


How do I filter in sql profiler?

538


What is the difference between function and procedure in pl/sql?

541


What is a sql trace file?

549






Why trigger is used in sql?

532


What is the main reason behind using an index?

556


Why are indexes and views important to an organization?

527


Is sql free?

501


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3109


What can I use instead of union in sql?

518


explain normalization concept? : Sql dba

592


How do we accept inputs from user during runtime?

548


Can we join tables without foreign key?

520


Where is pl sql used?

521