Regular expressions

  • Thread starter Thread starter Boni
  • Start date Start date
B

Boni

Dear all,
is it possible to use .NET or any other "build in" regular expressions
libruary from native absolutely unmanaged C++ (no IJW no managed code).
Thanks a lot,
Boni
 
Boni said:
Dear all,
is it possible to use .NET or any other "build in" regular expressions
libruary from native absolutely unmanaged C++ (no IJW no managed
code). Thanks a lot,

Well, if you use .NET regex's you're by definition not pure unmanaged.

With VC7 and above (I think - VC8 for sure), ATL has regexes - see
http://msdn2.microsoft.com/en-us/library/6w2611dd.aspx.

You can also use GRETA: http://research.microsoft.com/projects/greta/

or boost::regex: http://www.boost.org/libs/regex/doc/index.html

Personally, I'd use boost::regex (and have on several projects).

-cd
 
Thank you very much Carl,
Well, if you use .NET regex's you're by definition not pure unmanaged.
I was thinking that I can get from unmanaged code thru COM somehow to regex
engine.
Regarding other regex engines,what is the most compatible option to .NET (I
have already .NET regexes which I need to port into unmamaged code)?
With best regards,
Boni
 
Boni said:
Thank you very much Carl,
I was thinking that I can get from unmanaged code thru COM somehow to
regex engine.
Regarding other regex engines,what is the most compatible option to
.NET (I have already .NET regexes which I need to port into unmamaged
code)?

I don't really know what "compatible to .NET" means. Any of the options I
mentioned could be used in native code compiled with VC6 or later with or
without .NET anywhere in the picture.

Yes, you could build a managed DLL that exposes .NET regular expressions
through COM as well.

-cd
 
Back
Top