greg_match greg_match -- Checks if a string matches a GREG pattern. greg_match checks if a string matches a GREG pattern. Usage // 1. Command form. bool sub::greg_match(string pattern, string subject)