-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
Description
Conditional capture groups, e.g. /(group1)? (?(1)yes|no)/.examples
are not yet supported.
This example should return: ["group1 yes", " no"]
.
This has been a feature of the ruby language since v2.0.0
, although it is a little-known/rarely used language feature.
Note that unfortunately, a common use case is to use conditional capture groups in conjunction with look-arounds - which this library cannot support.