-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Lookaheads generate content and negative lookaheads have no effect #18
Comments
|
I think that behaviour of lookahead should be the same as without using lookahead. For example: I think that It is true that In summary I think that lookahead expressions are not useful to generate random strings. Any string produced by regular expression with lookahead can be produced with regular expression without lookaheads. |
@xgbuils This issue is different than what you describe. Look again at the example:
|
But |
I'm having the same issue with |
@fent any chance of having look ahead implemented in the near future? They're extremely practical when trying to do logical AND on regexes from multiple sources... (thanks for the awesome work!) |
I might take a shot at it eventually, but not anytime soon. :/ |
@PedroEsperanca what are you expecting to get back, and what are you actually getting back? |
a VIN number. Something like:
(taken from http://randomvin.com/) |
Lookaheads are only assertions that the following character(s) match, but don't actually consume characters. It seems randexp generates random content for them, however:
Negative lookaheads should remove possible matches ahead, but randexp ignores them:
The text was updated successfully, but these errors were encountered: