you'd have to make the regex `"(..)"` for the capt...
# getting-started
j
you'd have to make the regex
"(..)"
for the capture group 1 to work. I did have to make one more change to get rid of the trailing `-`:
"abcdefgh".replace(Regex(".."), "$0-").trimEnd('-')