python
>>> re.match('(?!and)\S+\s+or\s+(?!and)\S+', 'and or cnd').group(0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'group'
javascript
'and or cnd'.match(/(?!and)\S+(\s+or\s+(?!and)\S+)+/g)
["nd or cnd"]
где JS^Wя ошибся?