title: Powershell join lines
body: <p>I have text file(s) that look like below:</p>
  
  <p>1.
  <br/>
  SometextSometextSometextSometext</p>
  
  <p>2.
  <br/> 
  SometextSometextSometextSometext</p>
  
  <p>3.
  <br/>
  SometextSometextSometextSometext</p>
  
  <p>4.
  <br/> 
  SometextSometextSometextSometext</p>
  
  <p>I need to remove the carriage return between the number and the text below it and there needs to be a space between the number(.) and moved text as below:</p>
  
  <p>Right now I'm trying:</p>
  
  <pre><code>$x =  Get-Content *FILENAME*
  $x |  Foreach-Object {$_ | select-string "^\d{1,2}\.\s+" }
  </code></pre>
  
  <p>(Note: I can match on select-string "^\d{1,2}.\s+" but after than don't know how to remove the line break or join the files)</p>
  
  <p><strong>Final Outcome I'm trying for:</strong></p>
  
  <ol>
  <li>SometextSometextSometextSometext</li>
  <li>SometextSometextSometextSometext</li>
  <li>SometextSometextSometextSometext</li>
  <li>SometextSometextSometextSometext</li>
  </ol>