I am getting the above error using the pattern
"\b([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})\b"
(For email checking)
whenever the search content's length is longer than 17 characters.
I have tried using boost 1.42 and 1.61 and got the same result.
The platform is AIX 7 with g++ 4.8.5
The c++ test program is very simple like this:
boost::regex e({the above search pattern});
int match = boost::regex_search({my search content}, e);
Please note that the same program does not get the exception on Windows (compiled using MSVC)
From other SO questions, I know it is possible to get this exception. But I don't know if this is platform specific or not.
I also tried using some online regex tester and there is no problem with the same search pattern (i.e. if the search content contains a email, the online tool can find the match)
My question is why the same program with the same search pattern does not fail on Windows.