On Sun, Mar 23, 2014 at 11:59:39AM +0100, Andreas Schwab wrote: > -r changes the regexp syntax to extended, so this will no longer match.
Right, it needs a few more \ removed - however, it doesn't work anyway, as our sed does not accept empty alternatives: (si|2|3|) fails with: RE error: empty (sub)expression Since the script is outside posix, what is the prefered solution here? Martin