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

negated character class #21

Open
massimilianodesimone opened this issue Aug 16, 2014 · 1 comment
Open

negated character class #21

massimilianodesimone opened this issue Aug 16, 2014 · 1 comment

Comments

@massimilianodesimone
Copy link

It seems to me that Reggy does not detect negated character classes properly.
The regex \b[^a-b]{4}\b matches four letter words that do not contain the range [a-b].

regex_1

Above, Reggy matches the words 'been' and 'beck', which are four letter but contain the letter 'b'.

regex_2

If I tick the "Match Case" check box, Reggy does not match anymore the words 'bean' and 'beck'.

@jimmedlen
Copy link

similar issue with a negated class
any non-word character and not a space should not include the letter 'a'

screen shot 2014-10-21 at 4 12 42 pm

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