Skip to content

Improve robustness and performance of regular expressions #1614

Open

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions