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 (())
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+712005 and 3417Alternative
Speed - is most important, because the regex engine much more powerful anyway.
v2:
@c ... @12@c*@7- >12457accessor: $nv3 (overhead):
@cflag - switch to enable()for capturing@c12(*)7- >12457accessor: $1 - 45\(\)or(())