title: How to search through a paragraph of text for a list of words, and once found, add to a dictionary
body: <p>I am using a GET request to receive XML information back from a website.  I have parsed the information and have gotten a point where I want to set up a new scenario. </p>
  
  <p>The Scenario is, when I run a FOR loop through the xml(now turned into text in a dictionary []) how can I:</p>
  
  <ol>
  <li><p>search the whole text for a variety of words?  For example, say I know I'm looking for "value", "Lastupdatedate", and "Createdby" and want to grab that information everytime I see it</p></li>
  <li><p>IF I find one of those words above, grab the word, and everything in between them (this is xml, so if I find "value"  I want to grab the information in between like (value - 5 - value) ?.  So the final information would have value: 5</p></li>
  </ol>
  
  <p><code>finalvalues = []</code></p>
  
  <pre><code>MASTER = [This is the text I'm searching through]
  </code></pre>
  
  <p><code>variables = ["value", "Lastupdatedate", "Createdby"]</code></p>
  
  <p><code>for i in MASTER:
      #need something here to grab the actual name that it found
      tst = re.findall(variables(.*?)variables,i)
      finalvalues.append(tst)</code></p>