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