preg_match on the versions improved