title: Regular Expression: Exclude keywords from Email R
body: <p>I have a text field that has email addresses for which I made below pattern</p>
  
  <pre><code>library(stringr)
  str_extract_all(Data, "([a-zA-Z0-9.-])+@([a-zA-Z0-9.-])")
  </code></pre>
  
  <p>It works perfect and detects everything. However, I need to exclude emails from certain domains like gmail.com. For instance, I don't want emails that are with <code>@gmail.com</code>.</p>
  
  <p>Using not symbol (<code>^</code>), I should be able to achieve my need, however, I have no idea why I get stock after several trial of adding <code>^gmail.com</code> to my pattern.</p>