sed -r is not available on osx...