Easy-to-Use Regular Expression Support in C++?

Tags: c++ regex
Question!

I'm looking for a robust, easy-to-use, regular expression evaluator for native C++, either platform-independent or Windows-specific.

Requirements:

  • Can't use Boost or ACE regex libraries (unfortunately)
  • Can't use .NET Regex (or any managed code)

The main requirement is that it should be standalone and open.



Answers

C++11 and forward now contains the standard regular expression library.
Include the <regex> header, and use.



Now C++11 includes the support of regular expressions. It will be platform independant. You just need a recent compiler. Check that list to know which one to use.

http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport

Hope it helps

By : Gabriel


Qt has also a nice Regular Expression implementation QRegExp. It is also platform independent.

By : masc


This video can help you solving your question :)
By: admin