Use preg match instead of preg_match_all in checkDocHints