create a regex based on gitignore code example
Example: 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,...