Is it possible to get the number of required groups in a mixed required/optional regex? #1204
-
But in a mixed content situation e.g. |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Jun 16, 2024
Replies: 1 comment 7 replies
-
There's no out of the box way, no. I'm unsure of the use case for it. But it seems like you can compute it easily enough by looking at |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
masklinn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no out of the box way, no. I'm unsure of the use case for it. But it seems like you can compute it easily enough by looking at
Hir
recursively?