Popularity
1.2
Stable
Activity
0.0
Stable
6
3
2

Description

Easier CPP interface to PCRE regex engine with global match and replace.

I was looking around for better regex engine than regcomp for my C/C++ apps. I found PCRE (Perl Compatible Regular Expression, http://pcre.org/) and am very happy with it. It is very fast. PCRE is a C library and has an excellent API (see pcredemo.c in PCRE library source code). There is also a PCRECPP API but I didn't really like that. It isn't consistent with the C API and seems overly complex.

The RegExp API is easier to use and is very efficient. It makes it easy to find multiple matches. You can also easily access captures and named captures. You can replace captures and named captures with new substrings. It works with const char* and std::string. You can copy a string into the object an operate on it, or you can have the object reference an external string.

You only need two files (regexp.h and regexp.cpp) that you can include in your own code.

It does depend on PCRE to be installed on your

Programming language: C++
License: MIT License
Tags: Miscellaneous     C++11     Regex     Library    

RegExp alternatives and similar libraries

Based on the "Miscellaneous" category.
Alternatively, view regexp alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of RegExp or a related project?

Add another 'Miscellaneous' Library