Make regex compatible with ancient OS X sed.