I have a MS Visual C++ 6 application, it uses Standard Library only. I need to perform a search in string by pattern that may contain wildcard symbols '*'. For example: to search in "abcdefg" by pattern "a*g". The '*' means, as usual, any number (including 0) of any symbols.

How can I do that (this is MS Visual C++ 6, so I cannot use CAtlRegExp)? I would like to have not a library, but C++ sources to embed into my application. I do not need complicated RegExp's — only support of '*'