not something regex code example
Example 1: regex not something
// You can use (?!...) like the example below
let names = ['JOAO', 'JOHN', 'JOANA', 'JOABE'];
for(let n of names)
{
/(JO)(?!A)/.test(n);
// only true on 'JOHN'
}
Example 2: regex not a value
^((?!hede).)*$