title: replace all line breaks not precede by a period with a regular expression?
body: <p>Is is possible to select only line breaks that are not preceded by a period using regular expressions ?
  I am editing subtitles files for students. To make the printed version dead tree friendly I am trying to replace all the line breaks not preceded by a period or question mark with a space.</p>
  
  <p><strong>option 1</strong><br>
  select all the line breaks not preceded by a period or question mark regex <code>[a-z]\n</code> works for that but then it of course selects the last letter of the word before the line break.
  -> Is it possible to somehow save and insert the last letter of the word before the line break and insert that together with a space using regular expressions or do I have to write a script for that (say php)</p>
  
  <p><strong>option 2</strong><br>
  Select only line breaks that are preceded by a character. I tried looking into lookbehind.</p>
  
  <p>While writing this question the solution hit me.
  To select a line break precede by a character do <code>(?&lt;=[a-z])\n</code> and then replace with a space.</p>
  
  <p>I searched stack overflow and could not really find what I was looking for. I hope I will not offend anybody by posting the question and solution at the same time. It might help someone else in the future.</p>