Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
swanandx opened this issue Nov 19, 2022 · 0 comments
Open

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

swanandx opened this issue Nov 19, 2022 · 0 comments

Comments

@swanandx
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant