<p dir="ltr">I've run in to this error before recently; unfortunately it parses wrong the content of "[]". As it is stated (I'm not sure where I've read it, <a href="http://www.cplusplus.com/">http://www.cplusplus.com/</a> I guess) not everything is supported from the c++11 standard yet, however, the boost library provides with the exact same "regex" class that the standard should have. (Not in depth though)</p>
<p dir="ltr">Hope that solution is more to your liking.</p>