tags:

views:

172

answers:

3

Does anyone know of any good tutorials on regular expressions using boost? I have been searching for a decent one, but it seems most are for people who know a little about regular expressions

+1  A: 

I always find the O'Reilly articles to be pretty helpful for many things. You could give this a try. If the problem is that you're not too familiar with regular expressions, I'd read this site for a primer on Regexes. Pay close attention to the Perl section, as many systems, including Boost, commonly support Perl-compatible Regexes.

Once you understand the basics, go for either the Boost docs or the aforementioned O'Reilly guide.

larley
+1  A: 

You may want to look at sections 23.6, 23.7, 23.8, and 23.9 (pp. 830-849) of Bjarne's Stroustrup's new book:

Programming: Principles and Practice using C++

alt text

Just like the rest of the book, these sections are very pedagogical and assume essentially zero background on regular expressions.

See also Stroustrup's page on the book.

Alexandros Gezerlis
A: 

You might want to look at Pete Becker's book The C++ Standard Library Extensions. That covers the TR1 regex library, but it was based (closely) on the Boost regex library. The TR1 regex library has been accepted into the draft standard for C++ 0x, so what the book covers will (almost certainly) soon be the standard regex library for C++ compilers in general. Along with helping you get your current job done, you'll be learning something that's relatively "future proof".

Jerry Coffin