Portable extended regex option to sed