I would like to be able to obtain a list of regular expressions from a file. I have tried reading the regexes into a char * or a std::string which works without a problem. However, converting them/using them as regexes proves to be fruitless, since there is a mismatch of data types.
Most online resources I have found create regexes such as this:
std::tr1::regex rx("regex expression here");
Pardon, I am also not sure of the difference between:
std::tr1::regex rx("regex expression here");
opposed to
std::tr1::regex rx = ("regex expression goes here");
I would like to know if there is a way to convert any kind of string data type into a regex in C++. Any help is appreciated. Thank you!