samedi 26 mars 2016

C++ Regex (GCC 4.9.2) regex_error

Can anyone tell me wheter it's a problem with the regex string or the C++ regex class?

std::regex e ("\\{((?:[^\\{\\}]++|\\{(?1)\\})++)\\}");

I'm receiving this error message after compiling at runtime.

terminate called after throwing an instance of 'std::regex_error'
what(): regex_error

Some Infos: GCC 4.9.2, Debian 8, C++11

Here is how the Regex is supposed to work: http://ift.tt/1ZEmYu5

Sorry for my bad english & thank you in advance

Aucun commentaire:

Enregistrer un commentaire