title: Stop When <br> is Encountered In C# RegEx
body: <p>I am aware that <a href="https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454">HTML Should Not Be Parsed With RegEx</a>.</p>
  
  <p>Nonetheless, there are exceptions. I am trying to take the following text:</p>
  
  <p><code>br &gt; Email: fooBar@yahoo.com&lt;br&gt;Name: Barbara Foo&lt;br&gt; Phone: 888888888&lt;br&gt;Professio</code></p>
  
  <p>and regEx out</p>
  
  <p><code>Barbara Foo</code> from it. </p>
  
  <p>The RegEx I am trying to use is <code>Name: (.*)((?=\\r)|(?=&lt;br&gt;))</code>. Note that I am trying to <a href="https://stackoverflow.com/questions/7124778/how-to-match-anything-up-until-this-sequence-of-characters-in-a-regular-expres">stop capturing</a> at <code>&lt;br&gt;</code> with <code>(?=&lt;br&gt;)</code>. This does NOT work. It works perfectly well with any word, phrases, etc, but not <code>&lt;br&gt;</code>. </p>
  
  <p>How do I get this to work?</p>
  
  <p>RegEx tester for C# here matches what I see when running locally: <a href="http://regexstorm.net/tester" rel="nofollow noreferrer">http://regexstorm.net/tester</a></p>
  
  <p>According to my <a href="https://stackoverflow.com/questions/10095039/are-the-angle-brackets-or-special-in-a-regular-expression">research</a>, angle brackets are not special characters to RegEx.</p>