List Info

Thread: HowTo: Use PCRE with Visual C++?




HowTo: Use PCRE with Visual C++?
user name
2006-03-20 17:29:33
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 regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

HowTo: Use PCRE with Visual C++?
user name
2006-03-20 21:40:39
just occurred to me: if u r using Visual Studio anyway, why
can't u use
native .NET Regex Library?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

HowTo: Use PCRE with Visual C++?
user name
2006-03-20 23:07:35
I'm aware of the .dot net framework regex class and wrote a
very simple
program to try it out ..... but I'd prefer to not get the
.dot net
framework involved.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

HowTo: Use PCRE with Visual C++?
user name
2006-03-21 01:33:26

l d allan <lynn.d.allangmail.com> wrote:
|> 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).

The developer doesn't live in Japan and doesn't speak
Japanese, so why
would you expect him to provide documentation in Japanese?
If can come up
with appropriate Japanese documentation and send it to him,
I'm sure he'll
be happy to include it in the PCRE bundle.

(hopefully, you get my drift..... 

      Jeffrey
------------------------------------------------------------
--------------
Jeffrey Friedl           Kyoto, Japan              http://regex.info/blog/




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )