Skip to content

[Feature request] all of the captured group #53

Description

@kckennylau

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions