pattern contains
any words and not and like
examples - 'adsjfjkdsa not like', 'wordsmsj not like'
any words and like
examples - 'dakladkl like', 'adsjkjk like'
The regex should be single regex not multiple match the follwing patterns:
'jkasjkdsk like'
'anyword not like'
'dsklksd like'
The regex should not match the following words: 'sdkjjksjk notlike' 'sdkjdjsklike' 'jkadjkjkad'
I know that it is possible to check these pattern with two regex patterns. I want to know if it is possible in one regex.
Regex to match first pattern - r'[a-z]*[\s]like'
second pattern - r'[a-z]*[\s]not[\s]like'