Use preg match instead of preg_match_all in checkDocHints

preg_match is faster than preg_match_all. You do not use $matches var.