Search code examples
c++regexexpressionre2

Automata based alternative to re2


I am needing to implement regular expressions in a C++ program I am writing, and I wanted to use re2 but I could not compile it on windows. Does anyone know of another regular expression library or whatever it's called that compiles easily on windows and isn't a "backtracking" regex engine, but an automata-theory based one (whatever that means) like re2 is?

Or just figuring out how to compile re2 on windows would be perfect.


Solution

  • Regular expressions are part of the TR1 standard, so chances are you already have a <tr1/regex> header that contains a std::tr1::regex class and related functions.