title: rails, ruby - Given a Regex - Determine the Match Count
body: <p>Given something like:</p>
  
  <pre><code> message.split(/\n.* at.* XXXXXXXX wrote:.*/m).first
  </code></pre>
  
  <p>This works if there is a match, but when there isn't, it just returns all of <code>message</code>.</p>