
5 May
2010
5 May
'10
2:23 p.m.
AMDG Salvatore Benedetto wrote:
On 5 May 2010 16:10, Nat Goodspeed
wrote: This might (or might not) work better: "\\.\\/\\w+(\\.txt)"
Indeed I was missing a backslash.
The following worked as I expected.
std::string expression("\.\/\\w+(\.txt)");
Actual not. The first level of backslashes is processed by C++. The regex library never sees them. This pattern with match x/filename-txt, since . is a wild card. In Christ, Steven Watanabe