I am just trying to strip everything before the first occurance of a single space character from each line.
Eg.50G This is a Test (0000) 1234p (String).ext should become This is a Test (0000) 1234p (String).ext
So i am using this simple regex - ^.+?\s(.*) whereby i am just trying to wrap everything after the first space character in a group and then trying to substitute the whole match with the 1st group
Now this problem is that its working well in regex101 - https://regex101.com/r/1dAUcO/1
but when i try the same regex in terminal with sed , it returns a different output . Here's the sed command - echo "50G This is a Test (0000) 1234p (String).ext" | sed -E 's|^.+?\s(.*)|\1|g'