regex exclude code example
Example 1: regular rexpression except
// Search everything but strings not include 'validate'
let reg = /^((?!validate).)*$/
let str = "https://yourdomain.com/validate"
// Search by charactor, exlcue all the chars in charachter_to_not_match
let reg = /[^charachter_to_not_match]*/
Example 2: regex exclude character
[^a] #any character except 'a'
[^aA] #any character except 'a' or 'A'
[^a-z] #any character except a lower case character
[^.] #any character not a period