source is 1234567890, the regular expression ((?<=\d)\d{3})*\b can match: 234567890, so i think sed should replace 234567890 with TEST, but the result is: 1234567890, why?
source is 1234567890 , the regular expression ((?<=\d)\d{3})*\b can match: 234567890 , so i
Share
look-behind is not supported by sed.
you could try ssed (super sed), it supports perl mode, (-R) then you could pass perl style regex to it. e.g. look ahead/behind.
see the feature list:
https://launchpad.net/ssed