Skip to content

Capture data for all quantifiers #4

Description

@3F

The most lightweight way (+Speed) implement flag to enable capturing data by default for all quantifiers *?+#

  • @c ... enabled ...
  • @c ... enabled ... @c ... disabled ...

example:

  • @c12*5 a?d 34+7
    • 12005 and 3417
      • -> $1 - 00
      • -> $2 - n
      • -> $3 - 1

Alternative

Speed - is most important, because the regex engine much more powerful anyway.

v2:

  • @c ... @
    • 12@c*@7 - > 12457 accessor: $n

v3 (overhead):

  • @c flag - switch to enable () for capturing
    • @c12(*)7 - > 12457 accessor: $1 - 45
    • escape \(\) or (())

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