Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend regex backtracking topic to link to non backtracking engine #35498

Closed
danmoseley opened this issue May 25, 2023 · 0 comments · Fixed by #35751
Closed

Extend regex backtracking topic to link to non backtracking engine #35498

danmoseley opened this issue May 25, 2023 · 0 comments · Fixed by #35751

Comments

@danmoseley
Copy link
Member

We have a doc describing backtracking in regular expressions, potential pitfalls and how to control it:

https://github.com/dotnet/docs/blob/main/docs/standard/base-types/backtracking-in-regular-expressions.md

Since this was written there was a huge step forward -- in .NET 7 we shipped a non backtracking regex engine.
https://devblogs.microsoft.com/dotnet/regular-expression-improvements-in-dotnet-7/#backtracking-and-regexoptions-nonbacktracking

We should update this doc to point to that and when one might want to use that engine.

cc @stephentoub

@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label May 25, 2023
@steveharter steveharter added doc-enhancement and removed ⌚ Not Triaged Not triaged labels May 26, 2023
@ghost ghost added the in-pr This issue will be closed (fixed) by an active pull request. label Jun 24, 2023
@ghost ghost removed the in-pr This issue will be closed (fixed) by an active pull request. label Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants