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