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.
Printable View
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.
The boost libraries include regex handling.
http://www.boost.org/libs/regex/doc/index.html
http://www.boost-consulting.com/products/free
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.Quote:
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).