title: unable to extract text from BeautifulSoup
body: <p>I am trying to fetch data from one of the html page using beautifulsoup and regex but unable to do so.</p>
  
  <p>html_data:</p>
  
  <pre><code>&lt;td class="col-a size a-update"&gt;200 MB&lt;span class="next-size"&gt;1250&lt;/span&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I want to extract only 200 MB but not 1250</p>
  
  <p>I tried below code:</p>
  
  <pre><code>from bs4 import BeautifulSoup
  
  html_string = '&lt;td class="coll-4 size mob-uploader"&gt;194.5 MB&lt;span 
  class="seeds"&gt;3422&lt;/span&gt;&lt;/td&gt;'
  soup = BeautifulSoup(html_string, 'html.parser')
  size =  soup.find('td', {'class': 'size'}).getText()
  print size
  </code></pre>
  
  <p>but I got both 194.5 MB3422</p>
  
  <p>Please suggest.</p>