fixed typing of regex_match() function