retina
retina copied to clipboard
[Feature request] all of the captured group
For example, the regex (.)+
, when applied to abcd
, would have the first capture group containing for elements, {a,b,c,d}
.
The feature request is to create a substitution pattern, for example $a
, to substitute all of the capture groups.
Demonstration:
- Stage:
(\d)+
replaced by$a1$a1
- Input:
abc123def456
- Output:
abc123123def456456
- Stage:
((a)|(.))+
replaced by$a1$a2
- Input:
abcabbcab
- Output:
aaabcbbcb