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

Positive and negative lookahead #32

Closed
dovidkopel opened this issue Dec 12, 2016 · 1 comment
Closed

Positive and negative lookahead #32

dovidkopel opened this issue Dec 12, 2016 · 1 comment

Comments

@dovidkopel
Copy link

For complex patterns like:
((?!000)(?!666)(?:[0-6]\\d{2}|7[0-2][0-9]|73[0-3]|7[5-6][0-9]|77[0-2]))-((?!00)\\d{2})-((?!0000)\\d{4})

the ?! character seem to be interpreted literally, it would be nice to have support for all of the supported characters that Java support (https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html)

@mifmif
Copy link
Owner

mifmif commented Dec 16, 2016

Hi,
Unfortunately the used library (automaton) has some limitations, one of them is that it doesn't support the look-ahead and look-behind assertions . So they will not be interpreted as assertion in your regular expression.

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

2 participants