blog: regular expression C++ classes

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
User avatar
nikos
Site Admin
Site Admin
Posts: 15771
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

blog: regular expression C++ classes

Post by nikos »

here's the comment area for today's blog post found at
http://zabkat.com/blog/regexp-C++-shootout.htm
User avatar
Thracx
Silver Member
Silver Member
Posts: 263
Joined: 2004 Nov 05, 19:33
Contact:

Re: blog: regular expression C++ classes

Post by Thracx »

Sorry to hear about your RegEx woes, RegEx are very powerful and helpful - I use them nearly everyday as a developer and often find uses for them at home too. I recall having trouble getting them to work the way I want with X², so perhaps this explains that (C++ support, Perl-syntax, etc).

Could you use .NET for RegEx? Obviously it's not C++, but perhaps it could be an option to use when available and fallback to DEELX/etc when it's not available. Most people would have .NET installed, as it's built into Windows 7+. I'm very familiar with using RegEx via C#, so I'd be willing to write a very small managed dll for you to interop with (COM) or you can make your own wrapper dll compiled with /clr.

PS. Ever since the forums were updated, I can no longer post to these forums from some of the machines that I use (likely because they use older browsers).
-Thracx

"Man wants to know, and when he ceases to do so, he is no longer a man."
-Fridtjof Nansen
User avatar
nikos
Site Admin
Site Admin
Posts: 15771
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: blog: regular expression C++ classes

Post by nikos »

why don't you repeat this experiment comparing (interop or however you can) the performance of DEELX with the .NET regexp?
MacDisein
Member
Member
Posts: 13
Joined: 2005 Oct 19, 16:24

Re: blog: regular expression C++ classes

Post by MacDisein »

We use boost::xpressive which is also a header only template library and should be used without any other dependencies of boost.

You should give it a try.


Regards
Post Reply