.NET 7 adds a new option to regexes, RegexOptions.NonBacktracking. The only currently available documentation seems to be in this blog post, although Microsoft does also have a page that discusses backtracking in general here (though it makes no mention of this new option, nor is it very relevant).
This would be a nice feature to have so that C# devs can try out their regexes intended for use with this option, and it might be easier to implement than an entirely new flavor since it's supposed to be a subset of current C# regex functionality.
(continuing the discussion from #1939)
Flavor Request
.NET 7 adds a new option to regexes,
RegexOptions.NonBacktracking
. The only currently available documentation seems to be in this blog post, although Microsoft does also have a page that discusses backtracking in general here (though it makes no mention of this new option, nor is it very relevant).This would be a nice feature to have so that C# devs can try out their regexes intended for use with this option, and it might be easier to implement than an entirely new flavor since it's supposed to be a subset of current C# regex functionality.