I want to write a regex in Python or JavaScript to match if the given string does not JUST contain the given word (e.g “any”).
For example :
any : does not match
AnY : does not match
anyday : match
any day : match
blabla : match
If you also need words other that starting with “any” you can use a negative lookahead
This will match anything besides “any”.