POSIX compliant regex for sed