Notepad++ insert new line at every nth occurrence of a string/character
<p>Using Notepad++ <em>Find and Replace</em> feature, I would like to insert a new line at every <em>n</em>th occurrence of a character or string (a comma in my case).</p>

<p>I have tried the regex below using "Regular expression" mode, but no luck.</p>

<p><strong>Find what:</strong> <code>((,){1000})</code></p>

<p><strong>Replace with</strong>: <code>\1\n</code></p>