I want to match any string that does not start with 4321 I came about it with the positive condition: match any string that starts with 4321:
^4321.*
Now I want to reverse that condition, for example:
1234555passes12322222passessNonepassess4321ZZZdoes not pass43211111does not pass
Please help me find the simplest regex as possible that accomplishes this.
I am using a mongo regex but the regex object is build in python so please no python code here (like startswith)