title: Node.js: Regular Expression To Get "From: " and "To: "
body: <p>Given this text file:</p>
  
  <pre><code>Received: from unknown (HELO aws-bacon-delivery-svc-iad-1007.vdc.g.com) ([10.146.157.151])
    by na-mm-outgoing-6102-bacon.iad6.g.com with ESMTP; 12 Apr 2011 14:30:47 +0000
  Return-Path: 0000012f4a2a0037-528dbafb-e773-44be-bef5-07d8f63e6aee-000000@email-bounces.g.com
  Date: Tue, 12 Apr 2011 14:42:37 +0000
  From: xxx@xxx.example.com
  To: yyy@yyy.example.com
  Message-ID: &lt;0000012f4a2a0037-528dbafb-e773-44be-bef5-07d8f63e6aee-000000@email.g.com&gt;
  Subject: test
  Mime-Version: 1.0
  Content-Type: text/plain;
   charset=UTF-8
  Content-Transfer-Encoding: 7bit
  X-AWS-Outgoing: 199.255.192.79
  
  testing123
  </code></pre>
  
  <p>I want to get every field (Return-path, Date, From, To, etc.) as well as the body ("testing123).</p>
  
  <p>I've tried matching using:</p>
  
  <pre><code>    var bodyRegex = /[\n]Subject: (.+)[\n](.+)/
  </code></pre>
  
  <p>but I get empty value.</p>