# Simple Regular Expression Support in C++?

I'm seeking a durable, simple, normal expression critic for indigenous C++, either platform-independent or Windows-specific.

Needs:

• Can not make use of Boost or ACE regex collections (however)
• Can not use.NET Regex (or any kind of took care of code)

The major need is that it needs to be standalone and also open.

0
2019-05-07 01:05:57
Source Share
Answers: 7

Why do not you make use of Microsoft ATL is regex collection? Kenny Kerr has actually created a short article on that particular lately.

ATL consists of a light-weight normal expression execution. Although initially component of Visual C+npls, it is currently consisted of with the ATL Server download.

The CAtlRegExp class layout applies the parser and also matching engine. ...

The normal expression grammar is specified on top of the atlrx.h header documents.

0
2019-05-21 05:40:43
Source

Qt has additionally a wonderful Regular Expression execution QRegExp. It is additionally system independent.

0
2019-05-19 23:18:57
Source

I would certainly second the referral for PCRE. I have actually utilized it in C+npls tasks in Windows and also it functions wonderful. It is free, also for constructing business software program. It additionally applies something of a de facto typical normal expression language, which will certainly rate to your customers. PCRE is certainly Perl - suitable, and also Python additionally makes use of the very same collection.

The indigenous PCRE user interface is a little bit unpleasant and also really C - design, so it is possibly worth creating a wonderful C+npls wrapper around it. There is likely currently is one around, yet I'm not accustomed to any kind of.

0
2019-05-19 09:44:45
Source

The GNU C Library sustains regular expressions. It's open, and also the RE code appears to be conveniently extractable.

0
2019-05-08 21:24:13
Source

shot libpcre

If you're stuck on home windows they have a home windows port which need to function. I recognize e-texteditor utilizes it, so at the very least that's evidence it functions : -)

0
2019-05-08 21:23:15
Source

The GNU C collection normal expressions center (regcomp (), regexec () and also close friends) is damaged. Usage libetre rather ; the function trademarks match the ones given by glibc. http://laurikari.net/tre/

0
2019-05-08 17:11:04
Source

If you make use of Visual Studio you can make use of Visual C++ 2008 Feature Pack Release, this applies several of TR1, and also consists of normal expression parsing. Get it

0
2019-05-08 10:19:57
Source