firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.24k stars 199 forks source link

Add support for .NET 7 non-backtracking option #1951

Closed Ernest314 closed 1 year ago

Ernest314 commented 1 year ago

(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.

firasdib commented 1 year ago

Thank you, I will add this option to the UI.