I am using this regular expression
/(?!results)/i
As far as I understand, it will match any string that does not contain the word "result". However, when I try
/(?!results)/i.test('basketball results')
it returns true
. How do I match strings that do not contain the word results
?