Regular expressions and C++

Regular expressions are used for searching and performing modifications on strings. Using such expression you can search text patterns or test if text is correct format. There are several syntax standards (Perl, POSIX, ECMAScript etc.). Till C++11 language itself didn't support standard solution for this task.

Introduction

Solutions

Current list of solutions I know that can be used for this task:

1) C++11 regex

2) Boost.Xpressive

3) Boost.Regex

4) regex.h - POSIX C Regular Expressions

5) PCRE - Perl Compatible Regular Expressions

Includes C++ wrapper written by guys from Google, inc.

6) Microsoft GRETA

Experimental project.

Tutorial

7) RE2

See also

Share

follow