I want to use PCRE with Visual Studio 6/7/8. My
understanding is the
latest version of PCRE is 6.4 (but might be 6.6?)
PCRE seems mostly intended for Unix/Linux programmers. The
developer
seems to have little or no interest in providing nmake or
VC++ project
files (dsw, dsp, sln, vcproj). There are some files for
Visual C++, but
they seem to be obsolete for PCRE 6.x. I've gotten errors
trying to
compile/link the pcre files with a demo.cpp file.
I've gotten the Greta and boost::regex libraries to work,
but want to
try out pcre. My impression is that pcre may be more
powerful and/or
perl compatible, and not have dependencies on STL.
I would appreciate a very simple vc project (.dsw+.dsp or
.sln+.vcproj)
that uses PCRE 6.4 (or later) to do the equivalent of:
// demo.cpp
#include "pcre.h"
#include <stdio.h>
void main(void) {
char str[] = "search within this string " //
continued
"to find whether cat is contained";
char subStr[] = "cat";
char replaceStr[] = "dog";
// pcre statement to search str;
// pcre statement to replace cat with dog
printf("%s\n", str);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|