title: python regex re.compile match
body: <p>I am trying to match (using regex in python):</p>
  
  <pre><code>http://images.mymaterials.com/images/steel-images/small/steel/steel800/steel800-2.jpg
  </code></pre>
  
  <p>in the following string:</p>
  
  <pre><code>http://www.mymaterialssite.com','http://images.mymaterials.com/images/steel-images/small/steel/steel800/steel800-2.jpg','Model Photo'
  </code></pre>
  
  <p>My code has something like this:</p>
  
  <pre><code>temp="http://www.mymaterialssite.com','http://images.mymaterials.com/images/steel-images/small/steel/steel800/steel800-2.jpg','Model Photo'"
  dummy=str(re.compile(r'.com'',,''(.*?)'',,''Model Photo').search(str(temp)).group(1))
  </code></pre>
  
  <p>I do not think the "dummy" is correct &amp; I am unsure how I "escape" the single and double quotes in the regex re.compile command.</p>
  
  <p>I tried googling for the problem, but I couldnt find anything relevant.</p>
  
  <p>Would appreciate any guidance on this.</p>
  
  <p>Thanks.</p>