vscode regex replace code example
Example 1: vscode regex replace
Given a regular expression of (foobar)
you can reference the first group using $1 and so on
if you have more groups in the replace input field.
Example 2: using capture groups in find and replace vscode
// Given some regular expression
(?<capture_group>...)...(?<another_capture_group>...)
// You can reference them in your replace by using
$1, $2,...