Switch to eregexp for sed