title: Regex matching curly bracket
body: <p>Looking for help in matching the curly brackets in a regular expression pattern. 
  I've tried different combinations of escapes, and symbol matching with little luck. Perhaps because it's Friday afternoon and I'm overlooking something; but your ideas would be greatly appreciated. The code below:</p>
  
  <pre><code>function stringFormat(str, arr) {
     for (var i = 0; i &lt; arr.length; i++) {
          var regExp = new RegExp('^\{' + i + '\}$', 'g');
          str = str.replace(regExp, arr[i]);   
      }
      return str;  
  }
  
  var str = '&lt;p&gt;The quick {0}, brown {1}&lt;/p&gt;';
  
  $('#test').html(stringFormat(str, ['brown', 'fox']));
  </code></pre>
  
  <p>I've also started a fiddle on this, <a href="http://jsfiddle.net/rgy3y/1/" rel="noreferrer">http://jsfiddle.net/rgy3y/1/</a></p>