title: How to escape capture group $N followed by integer when performing JavaScript regular expression replace?
body: <p>I understand that in JavaScript, you can perform regular expression replace with reference to capture groups like this:</p>
  
  <pre><code>&gt; "Hello World 1234567890".replace(
          /Hello (World) (1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/,
          "What's up $1");
  "What's up World"
  </code></pre>
  
  <p>Which is all good. But what if I want to reference to group 1 then immediately followed by "1". Say I what to see "What's up World1". So I'd write:</p>
  
  <pre><code>&gt; "Hello World 1234567890".replace(
          /Hello (World) (1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/,
          "What's up $11");
  "What's up 0"
  </code></pre>
  
  <p>Of course, in this case, it's referencing to group 11, which is "0", instead of group 1 followed by "1".</p>
  
  <p>How could I resolve this ambiguity?</p>