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

support positive lookaheads #3

Open
hackengineer opened this issue Jan 8, 2021 · 0 comments
Open

support positive lookaheads #3

hackengineer opened this issue Jan 8, 2021 · 0 comments

Comments

@hackengineer
Copy link

Positive lookaheads are useful to control the max length with predictable results. For example, multiple "words" that do not end with a whitespace with a max len of 11

^(?=.{2,11}$)[a-zA-Z]+([ -][a-zA-Z]+)*$
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