title: Regex match everything between special tag
body: <p>I have the following string that I need to parse and get the values of anything inside the defined <code>\$</code> tags</p>
  
  <p>for example, the string</p>
  
  <pre><code>The following math equation: \$f(x) = x^2\$ is the same as \$g(x) = x^(4/2) \$
  </code></pre>
  
  <p>I want to parse whatever is in between the <code>\$</code> tags, so that the result will contain both equations</p>
  
  <pre><code>'f(x) = x^2'
  'g(x) = x^(4/2) '
  </code></pre>
  
  <p>I tried something like <code>re.compile(r'\\\$(.)*\\$')</code> but it didnt work.</p>