in osx (mac) command line i try to use grep command :
grep '(?<!class) cselectnone' -s *
it should match 'def cselectnone()' but NOT 'class cselectnode()'. But in fact i can't match 'def cselectnone()'.
I try this code using http://regexr.com/v1/ and https://regex101.com/ And i got the correct result. But the result in osx command line was not correct . Why is it?