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

repeat operators allowed to start regular expression #36

Open
andrei-diaconu opened this issue Oct 24, 2015 · 0 comments
Open

repeat operators allowed to start regular expression #36

andrei-diaconu opened this issue Oct 24, 2015 · 0 comments

Comments

@andrei-diaconu
Copy link

Repeat operator (*, & and +) characters are allowed in the beginning of the regular expression. According to the documentation they should be followed by an atom. Also, all the other regex engines I tested report this as error in the regular expression.

Example: "*_abc" is considered by regcomp a valid regular expression, and matches "_abc".

I believe regcomp should report compile error, just like for other improper expressions, like "(_abc".

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