"Reversal of string.contains In python, pandas",df['A'].str.contains('^(?:(?!Hello|World).)*$')