Boost Regex library

closed account (4ET0pfjN)
Hi, does anyone know how to use Boost Regex library for C++? I need some basic lessons, so any would be appreciated.
closed account (o1vk4iN6)
C++11 includes a regex library, do you mean syntax or how to create regular expressions to do what you want? You can google for examples, it's easy, ".*" means any character (the '.') repeated zero or more times (the '*') so this will match any string. I know there are some different ones, extended versions and such so you would be better of searching which one it uses.

http://en.cppreference.com/w/cpp/regex
closed account (4ET0pfjN)
I mean how do you install it in Ubuntu 11.10, I'm using VirtualBox on my WIndows 7 by the way.
You just have to compile with the flag -std=c++0x to use C++11 features (assuming the compiler that comes with the distribution is new enough).
If you want to use Boost.Regex instead, install the package libboost-regex-dev.
closed account (4ET0pfjN)
thanks
Topic archived. No new replies allowed.