regex diferent of

JavaScript
/^((?!badword).)*$/g^(?!.*bar).*$

serial_number: [^((?!null).)*$]+
Source

Also in JavaScript: