Q: Sed capture groups with \d not working as expected I am using linux shell terminal to manipulate some data. I have boiled the problem down to capture groups not working as expected. I am using the following command and i expect the string to be replaced by the first number
echo 123.456.789 | sed -E 's/(\d*)\.(\d*)\.(\d*)/\1/'
but it simply outputs the original string.
Thank you for your help.
