Due to server problems the website is temporarily offline! Visit http://www.smorgasbordet.com/pellesc/ to download Pelles C.
char * source = "F:\\Pelles C Programs\\test\\test.exe";char * regexString = "(.+\?)(\\.[^.]*$|$)";regex_t regexCompiled; if (regcomp(®exCompiled, regexString, REG_EXTENDED)) { printf("Could not compile regular expression.\n"); return 1; };
The *? non-greedy operators is an enhanced non-POSIX feature borrowed from Perl. You get them with REG_ENHANCED.