regex between two special characters
<p>Is there a way to replicate this PHP snippet in JQuery or Javascript...</p>

<pre><code>&lt;?php 
  $A = preg_match_all('#{.*(.*)}#U', $value, $B); //matches all between {} put it into array "B"
  $C = $B[1]; // array[0] = "{content}" --- array[1] = "content"
?&gt;
</code></pre>

<p>I have been trying to find something similar for like 4 hours or so to no avail.
The goal is basically to find everything between <code>{</code> and <code>}</code> and then pull that information out to be useful. </p>

<p>I am no Javascript expert so I would appreciate any help. Thank you in advance.</p>
