470,641 Members | 1,578 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 developers. It's quick & easy.

Regular expressions

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
Feb 19 '06 #1
3 1716
Boni wrote:
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
Feb 20 '06 #2
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


"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
schrieb im Newsbeitrag news:uG**************@TK2MSFTNGP09.phx.gbl... Boni wrote:
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

Feb 20 '06 #3
Boni wrote:
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)?


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

Feb 20 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Michael McGarry | last post: by
2 posts views Thread by Sehboo | last post: by
4 posts views Thread by Egyd Csaba | last post: by
7 posts views Thread by Billa | last post: by
3 posts views Thread by a | last post: by
25 posts views Thread by Mike | last post: by
13 posts views Thread by Wiseman | last post: by
12 posts views Thread by FAQEditor | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.