regex don match any of these words code example Example: regex negate ^(?!.*bar).*$ serial_number: [^((?!null).)*$]+