If I had a regular expression with, say 13 capturing groups, how would I specify a replacement string that contained the first backreference followed by the literal '3'?
var regex = /(one)(2)(3)(4)(5)(6)(7)(8)(9)(10)(11)(12)(13)/;
"one2345678910111213".replace(regex,"$13");
//Returns "13". How do I return "one3"?
The closest question I could find was this one, but it pertains to perl and did not include a hardcoded literal.
Also had a look at the docs on MDN, but there was nothing explicitly stated or demonstrated in the examples.