Skip to content

calculate min and max length for regex, if any #25

@swanandx

Description

@swanandx

TryHackMe flag will be min 3 ( as it must have thm in it ) and there is no max limit.

YouTube Video ID will be 11 characters long, ( n92YrzELBJU )

We need a list with this for every regex.

  • if there is no fixed length, put *
  • if min but no max, use 3-*
  • can only be 8 or 10, use 8/10
  • exact length 11, use 11

Many regex identify text which have fixed size range, if we filter based on it first, we might optimize our algorithm.
Suggestions are welcomed for other ways to optimize.

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