id summary reporter owner description type status milestone component version severity resolution keywords cc 195 regex_match problem nobody nobody "{{{ Ruslan Talpa I want to match different strings in a whois result and i am having some problems. first a execut a shell command similar to: ""/usr/bin/whois domain.com > tmp_file"" so after this we have a file, from wich i read line by line and try to match some strings but no matter what the reg. expression is the regex_match returns false. i even tried ""regex expression(""a"");"" and still no luck The only thing i can think of is that there is some character encoding stuff envolved but i don't know what to do. Please help, tell me what i am doin wrong here are the functions involved int parse_line(const char* response) { regex expression(""a""); cmatch what; if(regex_match(response, what, expression)) { cout << ""MATCH\n""; } else { cout << ""NO MATCH\n""; } return 0; } int get_info(string domain, char* pipe_file) { string line; Message msg; strstream command; command << ""/usr/bin/whois "" << domain.c_str() << "" > "" << pipe_file; system(command.str()); ifstream f(pipe_file); while (!f.eof()) { getline(f, line); parse_line(line.c_str()); } f.close(); return 0; } }}}" Support Requests closed None None Invalid