I'm attempting to parse a string that looks like 1.2.3 into something that looks like 1 : 2 : 3 using sed on Ubuntu 18.04.3 LTS.
I'm currently using the command:
$> echo 1.2.3 | sed -r 's/(\d+)\.(\d+)\.(\d+)/\1 : \2 : \3/'
Unforunately it outputs 1.2.3 instead of 1 : 2 : 3.
When I run the same command under Alpine 3.10 it works as expected.