title: How to have two variables in one regex?
body: <p>How can I get two variables into one regular expression?</p>
  
  <p>So far:</p>
  
  <pre><code>var1 = "Taco"
  x = re.findall('(?&lt;=\|)%s\|(?=\|)' % var1, string)
  </code></pre>
  
  <p>This works great for the one variable but I need to have something like:</p>
  
  <pre><code>x = re.findall('(?&lt;=\|)%s\|%s(?=\|)' % var1 % var2, string)
  </code></pre>
  
  <p>How can I do this?</p>