negate a specific pattern in regex in r code example Example: regex negate ^(?!.*bar).*$ serial_number: [^((?!null).)*$]+