Replace camelcase preg function, since /e modifier was causing a php warning