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

Matching/generating incorrect strings #48

Open
railreaper opened this issue Nov 22, 2019 · 0 comments
Open

Matching/generating incorrect strings #48

railreaper opened this issue Nov 22, 2019 · 0 comments

Comments

@railreaper
Copy link

The regex ^(?=ca)([a-z]{4})$ should allow

cars
cast
cabs

..but not

car
cargo
castrate

...as they are not 4 letters long. exrex is generating strings starting with ca and followed by any 4 lowercase alphanumeric characters e.g. cabhzp. The example here shows how it should work.

(?=ca)(^[a-z]{4}$) is another example.

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