title: Function preg_match() is not finding the end of line appropriately
body: <p>I'm parsing through information in a file coming from a console, at the end of each line is the date, but the line may also have the date already listed in it. The input lines look like this:</p>
  <pre class="lang-none prettyprint-override"><code> 00029 --&gt; Ticket Received in QUEUE11 by ABCDE on 04/11/2013 at 11:   4/11/2013 
   00030 07:12.                                                         4/11/2013 
  </code></pre>
  <p>(There's a space before each line number and at the end of the line).</p>
  <p>My regex in my <code>foreach</code> loop looks like this:</p>
  <pre><code>if (preg_match(&quot;/\s\d{5}\s(.+?)\d{1,2}\/\d{1,2}\/\d{1,4}\s\n/&quot;, $line, $match))
  {
      $note = $match[1];
  }
  </code></pre>
  <p>The regex is working in <em>The Regex Coach</em> and I can't find any reason why it won't work in my code. With the \n there, it matches no line. Without it, it cuts off before the first date.</p>
  <p>I also tried \r and it behaves the same as having nothing. I'm looking for the final output to look like this once I've echoed $note in the loop.</p>
  <pre class="lang-none prettyprint-override"><code>Ticket Received in QUEUE11 by ABCDE on 04/11/2013 at 11:
  07:12.
  </code></pre>
  <p>What am I missing?</p>