
5 May
2010
5 May
'10
2:10 p.m.
Salvatore Benedetto wrote:
Here is the expression I'm using.
boost::regex regularExpression; std::string expression("\.\/\w+(\.txt)");
I haven't reviewed the syntax of the regular expression or the code you're using to match it. But I can tell you that your backslashes are not being passed to the library as you expect because of the rules of ordinary C++ string literals. This might (or might not) work better: "\\.\\/\\w+(\\.txt)"