Is there a way I can use regular expressions in my code ? Like, a standard library or something like that? I've been googling around, but I haven't found something I can use.
Is there a way I can use regular expressions in my code ? Like, a standard library or something like that? I've been googling around, but I haven't found something I can use.
Last edited by _izua_; 08-09-2007 at 06:48 PM.
The boost libraries include regex handling.
http://www.boost.org/libs/regex/doc/index.html
http://www.boost-consulting.com/products/free
Callou collei we'll code the way
Of prime numbers and pings!
Check out the Boost Regex implementation.
hmm, I'm using DevC++ and I get a ton of linker errors with the default credit card checking program. Reading part of the documentation, they say the linking is done automatically, so I don't have to pass any parameters.
I've installed boost by its default installer, and I've also installed the devpak. I've added boost directory to the list of include directories.
I don't know what else can be wrong. Any hints?
Thanks.
This is probably only the case if you use a special Boost template when you go New Project or whatever. Otherwise, you'd have to link with boost by hand.Reading part of the documentation, they say the linking is done automatically, so I don't have to pass any parameters.
You wouldn't be able to just open up a Boost source file and compile it. You'd probably need to create a Boost project, add the source file to the project, and then compile it.
Alternatively, of course, you can link with Boost by hand. Create an empty project and in the project settings (ALT-P) and add -lBoost_regex (I think that's what it is) to the Extra Linker Options textbox (or whatever it's called).
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.