Using regex capture groups in find replace
When using regular expressions in find replace, you can reference capture groups in the replacement using $1
, $2
, and so on. Use $0
to reference the entire match.
This can be a useful way to transform text.