Using regex lookbehinds in C++11

C++11 <regex> uses ECMAScript’s (ECMA-262) regex syntax, so it will not have look-behind (other flavors of regex that C++11 supports also don’t have look-behind).

If your use case requires the use of look-behind, you may consider using Boost.Regex instead.

Leave a Comment