tags: powershell string regex `-replace` uses regex's. Capture groups are referred to by `$n` and not `\1` as sometimes happens. ```ps $b = $a -replace '(l+)', 'ff$1$1gg'; echo $b ```