title: Splitting <textarea> post on empty line(s)
body: <p>I have a form with: </p>
  
  <pre><code>&lt;textarea name="test"&gt;
  </code></pre>
  
  <p>Assuming the user inputs the following text:</p>
  
  <pre><code>This is the first paragraph
  It has two lines
  
  This is the second paragraph
  </code></pre>
  
  <p>I would like to split this text into a list ["This is the first paragraph\nIt has two lines", "This is the second paragraph"]</p>
  
  <p>I thought this would work:</p>
  
  <pre><code>temp = self.request.get("test")
  list = re.split(r'\n\n', temp)
  </code></pre>
  
  <p>But it does not. However,</p>
  
  <pre><code>temp = self.request.get("test")
  list = re.split(r'\n', temp)
  </code></pre>
  
  <p>yields the following list: ["This is the first line", "", "This is the second line"]</p>
  
  <p>What am I missing?</p>
  
  <p>ALSO:</p>
  
  <p>Assuming there could be either one or two empty lines between the to texts, would this make sense?</p>
  
  <pre><code>temp = self.request.get("test")
  list = re.split(r'(\n){2,3}', temp)
  </code></pre>
  
  <p>SOLUTION:</p>
  
  <p>With the help below,</p>
  
  <p>I've found out that the following code works in my case:</p>
  
  <pre><code>temp = self.request.get("test")
  list = [l for l in temp.split('\r\n\r\n') if l.split()]
  </code></pre>
  
  <p>I think the line-breaking might depend on what system the input comes from, so it might not be the perfect solution.</p>