title: How can I replace a match only at a certain position inside the string?
body: <p>So, I have a function which has two params: string and match index to replace and i need to replace only match with that index. How can i do that?</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>replace('a_a_a_a_a', 1)
  </code></pre>
  
  <p><strong>Result:</strong></p>
  
  <pre><code>a__a_a_a
  </code></pre>