Open
Description
Is your feature request related to a problem?
When using builtins.match
I'd like to be able to do non-greedy matches.
Proposed solution
Add support for ?
in combination with e.g. *
or +
.
Alternative solutions
I could probably use {0,x}
where I increase x slowly until I get a match therefor implementing this in nix instead of relying on a regex feature.
Additional context
Checklist
- checked latest Nix manual (source)
- checked open feature issues and pull requests for possible duplicates
Add 👍 to issues you find important.