ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I think that you better look into perl or python if you have to work exclusively on regular expressions. As for C++, you can look for bruce eckel's book Thinking in C++ in www.mindview.net for some info, if I remember correctly.
I would not know if there were standard classes for C++ for handling regular expressions, but for C there are. As you probably know, you can use C-functions in C++ without problems.
In C you need too "compile" a regexp using the function regcomp().
The "compiled" regexp can then be used to match strings with regexec().
See:
$ info -f libc "regular expressions"
and/or:
$ man regcomp
$ man regexec
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398
Rep:
there are couple of regular expression libs. http://ourworld.compuserve.com/homep...ck/regexpp.htm
and there is one from gnu software check their page but as usual it is written in c not c++ but you can still use it
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.