retina icon indicating copy to clipboard operation
retina copied to clipboard

[Feature request] all of the captured group

Open kckennylau opened this issue 8 years ago • 0 comments

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

kckennylau avatar May 07 '16 07:05 kckennylau