Match if it has notes or twitter in input ^(?=.*(?:notes|twitter)).*
^(?=.*(?:notes|twitter)).*
Match all that don't have notes or twitter in input ^(?!._(?:notes|twitter))._
^(?!._(?:notes|twitter))._