fixed preg_match in dao generator