Fix the POSIX ERE to work properly.