I need to match for a pattern not check in a bigger string.
bigger_string = '<some words and> do not check <some other words>'
But it shouldn't have a number after that. So, not check <some words> should match but not check 67 <some words> shouldn't match.
I tried these:
re.findall(re.compile(r'not\s*check\s*\D*', re.I), bigger_string)
re.findall(re.compile(r'not\s*check\s*[^0-9]*', re.I), bigger_string)
It doesn't work. This always returns a match.