title: Splitting string with dots and spaces
body: <p>Let's say I have the following string: "This is a test. Haha.". I want to split it so that it becomes these there lines:</p>
  
  <pre><code>Hey. 
  This is a test. 
  Haha.
  </code></pre>
  
  <p>(Note that the space after the dot is preserved).</p>
  
  <p>I tried to split the string using the <code>Split</code> method, and split by the dot, but it returns 3 new strings with the space <em>before</em> the string, and it removes the dots. I want to keep the space after the dot and keep the space.</p>
  
  <p>How can I achieve this?</p>
  
  <p><strong>EDIT:</strong> I found a workaround, but I'm sure there's a simpler way:</p>
  
  <pre><code> string a = "Hey. This is a test. Haha.";
          string[] splitted = a.Split('.');
  
          foreach(string b in splitted)
          {
              if (b.Length &lt; 3)
              {
                  continue;
              }
  
              string f = b.Remove(0, 1);
  
              Console.WriteLine(f + ". ");
          }
  </code></pre>