I have a table that has the values like this.
ExpTable
+--------+
|expCol |
+--------+
|abc.abc |
|bcd.123 |
|efg.@/. |
+--------+
And what I wanted is that when the character after the period is a letter or number, the output will add a space after the dot like this:
Expected Output
+--------+
|expCol |
+--------+
|abc. abc|
|bcd. 123|
|efg.@/. | --the value here stays the same because after the period is not a letter/number
+--------+
I tried:
SELECT REGEXP_REPLACE(expCol, '.', '. ') from expTable WHERE /*condition*/
And as expected, everything including the last value 'efg.@/.' has got a space after the period. I dont know what to put in the WHERE clause.