C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RegEx cross-platform C++ library

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated)
View previous topic :: View next topic  
Author Message
Vitaly Repin
Guest





PostPosted: Sat Jul 23, 2005 1:07 am    Post subject: RegEx cross-platform C++ library Reply with quote



Hello!

I am looking for some regular expressions library which should meet the
following demands:

1) It can be compiled by Visual C++, gcc and comeau
2) It should be small enough.

I know about Boost.Regex, of course. But this is a part of Boost, the
_huge_ collection of useful libraries.
Can you recommend me some other library?

Thanks & Good bye!
--
WBR & WBW, Vitaly


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
John B. Williston
Guest





PostPosted: Sat Jul 23, 2005 10:02 am    Post subject: Re: RegEx cross-platform C++ library Reply with quote



On 22 Jul 2005 21:07:36 -0400, "Vitaly Repin" <programm (AT) metrocom (DOT) ru>
wrote:

Quote:
I know about Boost.Regex, of course. But this is a part of Boost, the
_huge_ collection of useful libraries.
Can you recommend me some other library?

NB: The regex library in boost is a small, self-contained unit, easily
included on its own in your applications.

CPT Phileosophos
Clan Executive Officer (XO)
Steel Maelstrom - http://www.steelmaelstrom.com

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Jonathan Turkanis
Guest





PostPosted: Sat Jul 23, 2005 10:04 am    Post subject: Re: RegEx cross-platform C++ library Reply with quote



Vitaly Repin wrote:
Quote:
Hello!

I am looking for some regular expressions library which should meet
the following demands:

1) It can be compiled by Visual C++, gcc and comeau
2) It should be small enough.

I know about Boost.Regex, of course. But this is a part of Boost, the
_huge_ collection of useful libraries.

Why does the size of Boost bother you? If the problem is that you don't want to
have to include all of Boost in your source distribution, you can use the bcp
tool to extract just the part of Boost you need:
http://www.boost.org/tools/bcp/bcp.html.

I'd strongly recommend using Boost.Regex, since it will soon be be coming to a
compiler near you -- as part of TR1.

Quote:
Can you recommend me some other library?

Thanks & Good bye!

Jonathan



[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Fabio Fracassi
Guest





PostPosted: Sat Jul 23, 2005 10:05 am    Post subject: Re: RegEx cross-platform C++ library Reply with quote

Vitaly Repin wrote:

Quote:
Hello!

I am looking for some regular expressions library which should meet the
following demands:

1) It can be compiled by Visual C++, gcc and comeau
2) It should be small enough.

I know about Boost.Regex, of course. But this is a part of Boost, the
_huge_ collection of useful libraries.

You know that you can install all Boost libraries seperately?

You should probably have a look at the tr1 proposal. It contains a regex
library, which will probably be included in the next C++ Standard.
I don't know if there are any implementations of it yet.
By the way, the tr1::regex were heavily influenced by boost::regex, so it
probably won't hurt to have a look at it.

HTH

Fabio







[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Vitaly Repin
Guest





PostPosted: Sun Jul 24, 2005 11:31 am    Post subject: Re: RegEx cross-platform C++ library Reply with quote

Hello!

Quote:
1) It can be compiled by Visual C++, gcc and comeau
2) It should be small enough.

I know about Boost.Regex, of course. But this is a part of Boost, the
_huge_ collection of useful libraries.

Why does the size of Boost bother you? If the problem is that you don't want to
have to include all of Boost in your source distribution, you can use the bcp
tool to extract just the part of Boost you need:
http://www.boost.org/tools/bcp/bcp.html.

Thank you. I really have not known about bcp. It seems to me,
Boost.Regex is my choice now.

Good bye!
--
WBR & WBW, Vitaly


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
James Kanze
Guest





PostPosted: Sun Jul 24, 2005 11:41 am    Post subject: Re: RegEx cross-platform C++ library Reply with quote

Jonathan Turkanis wrote:
Quote:
Vitaly Repin wrote:

I'd strongly recommend using Boost.Regex, since it will soon
be be coming to a compiler near you -- as part of TR1.

I'd recommend it for a completely different reason: it's
complete, and it works. Which aren't trivial conditions.

As to coming to a compiler near me... I certainly hope so,
because at present, the compilers near me (Sun CC) don't support
Boost at all.

--
James Kanze mailto: [email]james.kanze (AT) free (DOT) fr[/email]
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 pl. Pierre Sémard, 78210 St.-Cyr-l'École, France +33 (0)1 30 23 00 34

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Harold Bamford
Guest





PostPosted: Sun Jul 24, 2005 11:42 am    Post subject: Re: RegEx cross-platform C++ library Reply with quote

I also had this problem. When I looked at boost::regex, it looked to be very
powerful but when I tried extract just the parts for regex, I got over 200
files! Perhaps I did it wrong.

Anyway, my need was for something in an embedded system (extreme memory
limitations) and I finally chose pcre: http://www.pcre.org/

It had the added advantage of being completely free, even for commercial
use. And there are some free class wrappers to make it easier to use (pme, I
think).

Good luck!

-- Harold Bamford


"Vitaly Repin" <programm (AT) metrocom (DOT) ru> wrote

Quote:
Hello!

I am looking for some regular expressions library which should meet the
following demands:

1) It can be compiled by Visual C++, gcc and comeau
2) It should be small enough.

I know about Boost.Regex, of course. But this is a part of Boost, the
_huge_ collection of useful libraries.
Can you recommend me some other library?




[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Alex Blekhman
Guest





PostPosted: Sun Jul 24, 2005 6:05 pm    Post subject: Re: RegEx cross-platform C++ library Reply with quote

Vitaly Repin wrote:
Quote:
Hello!

I am looking for some regular expressions library which
should meet the following demands:

1) It can be compiled by Visual C++, gcc and comeau
2) It should be small enough.

The picture won't be complete without GRETA library:

"The GRETA Regular Expression Template Archive"
http://research.microsoft.com/projects/greta/

It's comparatively small - only six files. Also, its
performance is good. Here's performance comparison:

"Regular Expression Performance Comparison"
http://cvs.sourceforge.net/viewcvs.py/boost/boost/libs/regex
/doc/vc71-performance.html

HTH
Alex



[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Ismail Pazarbasi
Guest





PostPosted: Mon Jul 25, 2005 8:10 am    Post subject: Re: RegEx cross-platform C++ library Reply with quote

Yes, GRETA looks great, I have used it many times, but it doesn't
compile on FreeBSD 4.x due to wchar stuff.

Ismail


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
Jonathan Turkanis
Guest





PostPosted: Mon Jul 25, 2005 11:35 am    Post subject: Re: RegEx cross-platform C++ library Reply with quote

Alex Blekhman wrote:
Quote:
Vitaly Repin wrote:
Hello!

I am looking for some regular expressions library which
should meet the following demands:

1) It can be compiled by Visual C++, gcc and comeau
2) It should be small enough.

The picture won't be complete without GRETA library:

"The GRETA Regular Expression Template Archive"
http://research.microsoft.com/projects/greta/

The picture's still not complete ;-)

http://boost-sandbox.sourceforge.net/libs/xpressive/doc/html/index.html

Jonathan



[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Stephen Toledo-Brown
Guest





PostPosted: Mon Jul 25, 2005 3:25 pm    Post subject: Re: RegEx cross-platform C++ library Reply with quote

Jonathan Turkanis wrote:

Quote:
Why does the size of Boost bother you? If the problem is that you don't want to
have to include all of Boost in your source distribution, you can use the bcp
tool to extract just the part of Boost you need:
http://www.boost.org/tools/bcp/bcp.html.

Thanks for that - at last (and at least) we have a tool which can tell
us which licences we'll need to use a subset of Boost. Without that I
could see no practical way of obtaining the lawyers' approval to use
Boost at all. Is there a significant chance that there ever be a single
licence for Boost?

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Alex Blekhman
Guest





PostPosted: Tue Jul 26, 2005 12:27 am    Post subject: Re: RegEx cross-platform C++ library Reply with quote

Ismail Pazarbasi wrote:
Quote:
Yes, GRETA looks great, I have used it many times, but it
doesn't compile on FreeBSD 4.x due to wchar stuff.

IIRC, you can instantiate only ANSI part. Then wide char
part will be omitted at all. Though I never tried it on
anything but Windows.

--
Alex
tkfx [at] yahoo dot com



[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
pillbug
Guest





PostPosted: Wed Jul 27, 2005 5:34 pm    Post subject: Re: RegEx cross-platform C++ library Reply with quote

Quote:

"The GRETA Regular Expression Template Archive"
http://research.microsoft.com/projects/greta/


this was in the license.txt file accompanying the greta download:

"...you may install one copy of the Software on your personal computer
and use such copy at no charge for your non-commercial research or
non-commercial teaching purposes, only in an academic or other
noncommercial research setting..."

sort of limiting.

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Eric Niebler
Guest





PostPosted: Fri Jul 29, 2005 12:45 am    Post subject: Re: RegEx cross-platform C++ library Reply with quote

pillbug wrote:
Quote:
"The GRETA Regular Expression Template Archive"
http://research.microsoft.com/projects/greta/



this was in the license.txt file accompanying the greta download:

"...you may install one copy of the Software on your personal computer
and use such copy at no charge for your non-commercial research or
non-commercial teaching purposes, only in an academic or other
noncommercial research setting..."

sort of limiting.



If you get GRETA from gotdotnet.com, it's free for commercial use. Same
code, different license. Dumb, I know.

See VC++ PowerTools at:
http://www.gotdotnet.com/team/cplusplus/


<shameless plug>
My new regex library, xpressive, is totally free.
xpressive.zip,
http://boost-sandbox.sf.net/vault/index.php?directory=eric_niebler&
</shameless plug>


--
Eric Niebler
Boost Consulting
www.boost-consulting.com

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.