title: Python - Find text using beautifulSoup then replace in original soup variable
body: <pre><code>commentary = soup.find('div', {'id' : 'live-text-commentary-wrapper'})
  findtoure = commentary.find(text = re.compile('Gnegneri Toure Yaya')).replace('Gnegneri      Toure Yaya', 'Yaya Toure')
  </code></pre>
  
  <p>Commentary contains various instances of Gnegneri Toure Yaya that need changing to Yaya Toure.</p>
  
  <p><code>findAll()</code> doesn't work as findtoure is a list.</p>
  
  <p>The other problem I have is this code simply finds them and replaces them into a new variable called findtoure, I need to replace them in the original soup.</p>
  
  <p>I think I am just looking at this from the wrong perspective.</p>