title: Searching a string for an exact match from a list in Python
body: <p>I'm working on a project that searches specific user's Twitter streams from my followers list and retweets them. The code below works fine, but if the string appears in side of the word (for instance if the desired string was only "man" but they wrote "manager", it'd get retweeted). I'm still pretty new to python, but my hunch is RegEx will be the way to go, but my attempts have proved useless thus far.</p>
  
  <pre><code>    if tweet["user"]["screen_name"] in friends: 
          for phrase in list:
                  if phrase in tweet["text"].lower():
                      print tweet
                      api.retweet(tweet["id"])
                      return True
  </code></pre>