Usually, look ahead are a good way to create condition one the string inside one regex.
^(?!.*bot)Mozilla.*$
(?!...)
is a negative lookahead. It will fail the whole regex if what's inside matches, so here if there isbot
somewhere in your string (even inside a word)^$
are anchors matching the beginning and the end of your string