Skip to content

re documentation issue #24

Description

@heikkitoivonen
  • docs/stdlib/re.md understates re.compile(). It only mentions the O(n²) shared-prefix case. Because re.compile uses the same parser, it also pays:
    • O(n²) for a long run of (?:..) groups;
    • O(n·d) for groups nested d deep;
    • a cost for the code points a character-class range covers.

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions