Updating PHP to use the regex singleline modifier