I have find promising (depreciated) library in cregex.hpp. (If you are to try it yourself, make sure you have few .jpg files in 'jnk' directory). I have tried experimenting setting different boost::match_flag_type but no luck. Also I didn't receive any callback as expected in my 'cb' callback func? The program would seem to find all files, but then it will crash in bool regex_search(…). Any ideas?
#include "boost/regex/v4/cregex.hpp"
bool cb(const char* file)
{
return true;
}
int _tmain(int argc, _TCHAR* argv[])
{
boost::RegEx regEx;
std::string files ("C:\\jnk\\*.jpg");
regEx.FindFiles(cb, files, true);
return 1;
}