regex not equal to a word code example Example: regex negate ^(?!.*bar).*$ serial_number: [^((?!null).)*$]+