import re # regex for finding mentions in a tweet regex = r"(?<!RTs)@S+" tweet = '@tony I am so over @got and @sarah is dead to me.' # mentions = ['@tony', '@got', '@sarah'] mentions = re.findall(regex, tweet)