title: Regular expression to match EOF
body: <p>I have some data that look like this:</p>
  <pre><code>john, dave, chris
  rick, sam, bob
  joe, milt, paul
  </code></pre>
  <p>I'm using this regex to match the names:</p>
  <pre><code>/(\w.+?)(\r\n|\n|,)/
  </code></pre>
  <p>Which works for the most part, but the file ends abruptly after the last word, meaning the last value doesn't end in <code>\r\n</code>, <code>\n</code> or <code>,</code>. It ends with EOF. Is there a way to match EOF in regex so I can put it right in that second grouping?</p>