Regex to add a character at nth position?
<p>I have this text:</p>

<pre><code>1111111111111111111111111111111111111111111111111
</code></pre>

<p>where I need to add character at fifth position to have this result</p>

<pre><code>11111A11111111111111111111111111111111111111111111
</code></pre>

<p>I tried with</p>

<pre><code>(?&lt;=.{5})
</code></pre>

<p>Replace with</p>

<pre><code>A
</code></pre>

<p>it puts A after fifth character but continue to ad to every next five characters.</p>

<p>I am using Powergrep.
How to make it to stop after first occurence?</p>