sed: convert sed to use REG_STARTEND more explicitly.