
Many thanks for the information you have provided. I am looking to use wildcards for my program, but not just for file matching. To overcome this I will write a wrapper function to convert * in to .*, but that should not be too difficult. Then I guess it's a case of RTFM for the rest. To solve your problem of wildcarding, may I suggest that you use Unix over DOS or perhaps create a couple of flags to incorprate either.
Yep, in case it helps, here's a regular expression and format string I've used in the past to convert a DOS-style wildcard to a Perl regex: static const boost::regex transformer("([+{}()\\[\\]$\\^|])|(\\*)|(\\?)|(\\.)|([\\\\/:])"); static const char* replace_string = "(?1\\\\$1)(?2[^\\\\\\\\/\\:]*)(?3[^\\\\\\\\/\\:])(?4\\(\\?\\:\\\\.|$\\))(?5 [\\\\\\\\\\\\/\\:])";
I have noticed somthing else however with the current build. I'm getting C4786 warnings all over the place when I compile. I have tried putting #pragma warning(disable : 4786) at the start of my program, but this appears to have no effect. I wonder if it's something to do with the library. Remember I'm ising mscv6.
Well if you insist on using a broken compiler that's what you'll have to expect, I've tried really hard to suppress those warnings myself, but they never seem to stay turned off :-( In short use VC7.1 instead... John.