doing a negation with regular expression code example Example: regex negate ^(?!.*bar).*$ serial_number: [^((?!null).)*$]+