title: Is there any maximum length of character regex can handle?
body: <p>I'm stack in making my regex work in Python3.5.
  I have a list which contains a lot of URLs.
  Some URLs are short, others are long. </p>
  
  <p>I could excerpt URLs I wanted...mostly but only this URL cannot be excerpted.</p>
  
  <blockquote>
    <p><a href="http://www.forbes.com/sites/julianmitchell/2016/09/27/this-startup-uses-drones-to-map-and-manage-massive-construction-projects/#1ca4d634334e" rel="nofollow">http://www.forbes.com/sites/julianmitchell/2016/09/27/this-startup-uses-drones-to-map-and-manage-massive-construction-projects/#1ca4d634334e</a></p>
  </blockquote>
  
  <p>Here is the code.</p>
  
  <pre><code>urlList=[]  # Assume there are many URLs in this list. 
  
  interdrone = re.compile(r"http://www.interdrone.com/news/(?:.*)")
  hp = re.compile(r"http://www.interdrone.com/$")
  
  restOfThem=re.compile(r'\#|youtube|bzmedia|facebook|twitter|mailto|geoconnexion.com|linkedin|gplus|resources\.sdtimes\.com|precisionagvision')
  
  
  cleanuplist =[] # Adding URLs I need to this new list.
  
  for i in range(0,len(urlList)):
      if restOfThem.findall(ursList[i]):
          continue
  
      elif hp.findall(urlList[i]):
          continue
  
      elif interdrone.findall(urlList[i]):
          cleanuplist.append(urlList[i])
  
      else:
          cleanuplist.append(urlList[i])
  
  logmsg("Generated Interdrone clean URL list")
  return (cleanuplist)
  </code></pre>
  
  <p>forbes.com URL should fall into "else:" clause, so it should be added to cleanuplist. However, it is not. Again, only this one is not added to the new list.</p>
  
  <p>I tried to pick specifically Forbes site by this,</p>
  
  <pre><code>forbes = re.compile(r"http://www.forbes.com/(?:.*)")
  </code></pre>
  
  <p>then, add following elif statement.</p>
  
  <pre><code>elif forbes.findall(urlList[i]):
      cleanuplist.append(urlList[i])
  </code></pre>
  
  <p>However, it also does not pick up forbes site.</p>
  
  <p>Therefore, I come to doubt there is some kind of maximum boundary of character to apply regex (so that findall is skipped?). 
  I could be wrong. How can I excerpt forbes.com site above?</p>