title: Python find strings and replace
body: <p>I have string in Python :</p>
  
  <p><strong><code>s = "htmlhtl {% static path1 %} htmlhtml {% static path2/path3 %} htmlhtml "</code></strong> </p>
  
  <p>and variable :</p>
  
  <p><strong><code>path = "www.static.com"</code></strong></p>
  
  <p>I want to make from <strong>s</strong> new string which will contain on the places of the <strong><code>{% static ... %}</code></strong> tag paths to folders:</p>
  
  <pre><code>"htmlhtl www.static.com/path1 htmlhtml www.static.com/path2/path3 htmlhtml"
  </code></pre>
  
  <p>I have opened python doc, and have tried to do it by myself but I can't even match tags. The task seems to be very often case for regexp.</p>