What flavor of Regex does Visual Studio Code use? : <p>Trying to search-replace in Visual Studio Code, I find that its Regex flavor is different from full Visual Studio. Specifically, I try to declare a named group with <code>string (?&lt;p&gt;[\w]+)</code> which works in Visual Studio but not in Visual Studio Code. It'll complain with the error <code>Invalid group</code>.</p>

<p>Apart from solving this specific issue, I'm looking for information about the flavor of Regexes in Visual Studio Code and where to find documentation about it, so I can help myself with any other questions I might stumble upon.</p>

<p>Full Visual Studio uses .NET Regular Expressions as documented <a href="https://msdn.microsoft.com/en-us/library/2k3te2cs.aspx" rel="noreferrer">here</a>. This link is mentioned as the documentation for VS Code elsewhere on Stackoverflow, but it's not.</p>
