title: Extract scientific number from string
body: <p>I am trying to extract scientific numbers from lines in a text file. Something like</p>
  
  <p>Example:</p>
  
  <pre><code>str = 'Name of value 1.111E-11   Next Name 444.4'
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>[1.111E-11, 444.4]
  </code></pre>
  
  <p>I've tried solutions in other posts but it looks like that only works for integers (maybe)</p>
  
  <pre><code>&gt;&gt;&gt; [int(s) for s in str.split() if s.isdigit()]
  []
  </code></pre>
  
  <p>float() would work but I get errors each time a string is used.</p>
  
  <pre><code>&gt;&gt;&gt; float(str.split()[3])
  1.111E-11
  &gt;&gt;&gt; float(str.split()[2])
  ValueError: could not convert string to float: value
  </code></pre>
  
  <p>Thanks in advance for your help!!</p>