regXwild
regXwild copied to clipboard
Capture data for all quantifiers
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- >12457accessor: $n
-
v3 (overhead):
-
@cflag - switch to enable()for capturing-
@c12(*)7- >12457accessor: $1 - 45 - escape
\(\)or(())
-