Sed expr works in GNU sed not osx, use PHP instead