reggy icon indicating copy to clipboard operation
reggy copied to clipboard

negated character class

Open massimilianodesimone opened this issue 10 years ago • 1 comments

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'.

massimilianodesimone avatar Aug 16 '14 12:08 massimilianodesimone

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

jimmedlen avatar Oct 21 '14 20:10 jimmedlen