Skip to content

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

Closed
@danmoseley

Description

@danmoseley

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions