title: Is there a way to apply a regex find/replace in Notepad ++ to a certain number of lines at a time?
body: <p>I have a large document that I am manually highlighting 8 lines of, and using replace (in selection) to concatenate them into one line, separated by commas for importing into a CSV.  Is there a way to apply this to the entire document, 8 lines at a time? Regex find is <code>(\h*\R)+</code> replace is <code>\x20,</code>.</p>
  <p>If there is a better solution through another plugin or application, I am all ears!</p>
  <p>Example:</p>
  <pre class="lang-none prettyprint-override"><code>MS-AP-RM-107
  
  
  DHCP
  
  10.2.54.75
  
  MS-AP-RM-107
  
  MS
  
  PoE/Medium Power (15.4 W)
  
  AIR-CAP3702I-A-K9
  
  FCW2013NM20
  
  HS-AP-RM-113
  
  DHCP
  
  10.2.54.74
  
  HS-AP-RM-105
  
  HS
  
  PoE/Medium Power (15.4 W)
  
  AIR-CAP3702I-A-K9
  
  FCW2013NP3H
  </code></pre>
  <p>is turned into:</p>
  <pre class="lang-none prettyprint-override"><code>MS-AP-RM-107 ,DHCP ,10.2.54.75 ,MS-AP-RM-107 ,MS ,PoE/Medium Power (15.4 W) ,AIR-CAP3702I-A-K9 ,FCW2013NM20
  HS-AP-RM-113 ,DHCP ,10.2.54.74 ,HS-AP-RM-105 ,HS ,PoE/Medium Power (15.4 W) ,AIR-CAP3702I-A-K9 ,FCW2013NP3H
  </code></pre>