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
RegExp alternatives and similar libraries
Based on the "Miscellaneous" category.
Alternatively, view regexp alternatives based on common mentions on social networks and blogs.
-
RE2
RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library. -
UNITS
a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies. -
cxx-prettyprint
A header-only library for C++(0x) that allows automagic pretty-printing of any container. -
CommonPP
Small library helping you with basic stuff like getting metrics out of your code, thread naming, etc.
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of RegExp or a related project?