By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,190 Members | 811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,190 IT Pros & Developers. It's quick & easy.

regular expression lib

P: n/a
Vij
is there a cross platform (msvc, gcc and solaris CC) simple regex
library available? All we need is a simple lib that will do string
matching, nothing too complex.

Dec 9 '05 #1
Share this Question
Share on Google+
13 Replies


P: n/a

"Vij" <vi******@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
is there a cross platform (msvc, gcc and solaris CC) simple regex
library available? All we need is a simple lib that will do string
matching, nothing too complex.


Try searching on Google, with a search string like:

cross platform regular expression library c++

-Howard

Dec 9 '05 #2

P: n/a
Vij
Done that before this post. But if I may have missed something please
let me know.
I am not being lazy here, I have spent days trying to get GRETA to work
with Solaris and have failed :(

Dec 9 '05 #3

P: n/a
Vij wrote:
is there a cross platform (msvc, gcc and solaris CC) simple regex
library available? All we need is a simple lib that will do string
matching, nothing too complex.


Have a look at <http://www.boost.org/>. The regular expression library
from Boost is the base of what has become part of the first C++
standard library technical report (abbreviated as TR1) which lists
candidated for future inclusion into the standard C++ library.
--
<mailto:di***********@yahoo.com> <http://www.dietmar-kuehl.de/>
<http://www.eai-systems.com> - Efficient Artificial Intelligence
Dec 9 '05 #4

P: n/a
Vij wrote:
is there a cross platform (msvc, gcc and solaris CC) simple regex
library available? All we need is a simple lib that will do string
matching, nothing too complex.


Try the Boost library at www.boost.org or more specifically
http://www.boost.org/libs/regex/doc/index.html

hth Peter

Dec 9 '05 #5

P: n/a
On Fri, 09 Dec 2005 20:06:59 +0100, Dietmar Kuehl
<di***********@yahoo.com> wrote:
Vij wrote:
is there a cross platform (msvc, gcc and solaris CC) simple regex
library available? All we need is a simple lib that will do string
matching, nothing too complex.


Have a look at <http://www.boost.org/>. The regular expression library
from Boost is the base of what has become part of the first C++
standard library technical report (abbreviated as TR1) which lists
candidated for future inclusion into the standard C++ library.


You have overlooked that a "simple lib ... nothing too complex" is
required.

Best regards,
Roland Pibinger
Dec 9 '05 #6

P: n/a
Roland Pibinger wrote:
On Fri, 09 Dec 2005 20:06:59 +0100, Dietmar Kuehl
<di***********@yahoo.com> wrote:
Vij wrote:
is there a cross platform (msvc, gcc and solaris CC) simple regex
library available? All we need is a simple lib that will do string
matching, nothing too complex.
Have a look at <http://www.boost.org/>. The regular expression library
from Boost is the base of what has become part of the first C++
standard library technical report (abbreviated as TR1) which lists
candidated for future inclusion into the standard C++ library.


You have overlooked that a "simple lib ... nothing too complex" is
required.

That could also mean simple to use ;-)
Best regards,
Roland Pibinger


-- Peter

Dec 9 '05 #7

P: n/a

P: n/a
Sorry, should be http://www.pcre.org

Dec 10 '05 #9

P: n/a
Vij wrote:
is there a cross platform (msvc, gcc and solaris CC) simple regex
library available? All we need is a simple lib that will do string
matching, nothing too complex.


If your compiler/libs are POSIX compliant (unix, linux) then
<regex.h> should be available. see 'man regcomp', 'man regexec',
etc for details.

You could also use the GNU regex lib - source code found here:

http://directory.fsf.org/regex.html

Larry
Dec 10 '05 #10

P: n/a
On Fri, 09 Dec 2005 21:58:23 +0100, Peter Most <Pe********@gmx.de>
wrote:
Roland Pibinger wrote:
You have overlooked that a "simple lib ... nothing too complex" is
required.

That could also mean simple to use ;-)


Maybe the following is closer to the OP's requirements:
regex-lite:
http://www.two-sdg.demon.co.uk/curbralan/code.html
http://www.two-sdg.demon.co.uk/curbr...BestString.pdf

Best wishes,
Roland Pibinger
Dec 10 '05 #11

P: n/a
This seems to be "simple lib":
http://www.geocities.com/SiliconVall...78/pubdom.html
"a slightly modified version of well known "classic" regular
expression implementation by Henry Spencer".

Best wishes,
Roland Pibinger

Dec 10 '05 #12

P: n/a
Vij
Thanks.
Any known implimentation of this on Solaris? I seem to be getting some
errors when I compile this for solaris?

Dec 12 '05 #13

P: n/a
Vij
I am talking about pcre here (sorry about the misup)

Dec 12 '05 #14

This discussion thread is closed

Replies have been disabled for this discussion.