title: How fill a regex string with parameters
body: <p>I would like to fill regex variables with string.</p>
  
  <pre><code>import re
  
  hReg = re.compile("/robert/(?P&lt;action&gt;([a-zA-Z0-9]*))/$")
  hMatch = hReg.match("/robert/delete/")
  args = hMatch.groupdict()
  </code></pre>
  
  <p>args variable is now a dict with {"action":"delete"}.</p>
  
  <p>How i can reverse this process ?  With args dict and regex pattern, how i can obtain the string "/robert/delete/" ?</p>
  
  <p>it's possible to have a function just like this ?</p>
  
  <pre><code>def reverse(pattern, dictArgs):
  </code></pre>
  
  <p>Thank you</p>