no word regex match no word code example Example: regex negate ^(?!.*bar).*$ serial_number: [^((?!null).)*$]+