title: IndexError: list index out of range
body: <p>I have a data list which I got from splitting html with regex.</p>
  
  <pre><code>data_list = re.findall(r'&lt;tr.*?&gt;(.*?)&lt;\/tr&gt;', html)
  </code></pre>
  
  <p>When I loop in data_list I want to defining variable open for example</p>
  
  <pre><code>open = re.findall(r'kurs".*?&gt;(.*?)&lt;\/td', x)[0].strip('&lt;/span&gt;')
  </code></pre>
  
  <p>and it gives me an error : </p>
  
  <blockquote>
    <p>Traceback (most recent call last):</p>
    
    <p>File "", line 2, in 
        open = re.findall(r'kurs".<em>?>(.</em>?)&lt;/td', x)[0].strip('')</p>
    
    <p>IndexError: list index out of range</p>
  </blockquote>
  
  <p>Thank you in advance</p>