Skip to content

Improve robustness and performance of regular expressions #1614

Description

@JakeQZ
  • Use possessive quantifiers wherever possible to improve efficiency and avoid potentially catastrophic backtracking
  • Avoid unnecessary capturing groups (e.g. use (?:x|y) instead of (x|y) where the content does not need to be known)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions