<p dir="ltr">I&#39;ve run in to this error before recently; unfortunately it parses wrong the content of &quot;[]&quot;. As it is stated (I&#39;m not sure where I&#39;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 &quot;regex&quot; class that the standard should have. (Not in depth though)</p>

<p dir="ltr">Hope that solution is more to your liking.</p>