Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture data for all quantifiers #4

Open
3F opened this issue Feb 11, 2017 · 0 comments
Open

Capture data for all quantifiers #4

3F opened this issue Feb 11, 2017 · 0 comments

Comments

@3F
Copy link
Owner

3F commented Feb 11, 2017

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 (())
@3F 3F added the enhancement label Feb 11, 2017
@3F 3F mentioned this issue Feb 11, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant