title: RegEx: Excluding a pattern from the match
body: <p>I know some basics of the RegEx but not a pro in it. And I am learning it. Currently, I am using the following very very simple regex to match any digit in the given sentence. </p>
  
  <pre><code>/d
  </code></pre>
  
  <p>Now, I want that, all the digits except some patterns like e074663 OR e123444 OR e7736 should be excluded from the match. So for the following input, </p>
  
  <blockquote>
    <p>Edit <strong>398</strong>e<strong>997979</strong> the Expression <strong>9798729889</strong> &amp; T<strong>900980980098</strong>ext to see e081815 matches. Roll over matches or e081815 the expression e081815 for details.e081815 PCRE &amp; JavaScript flavors of RegEx are e081815 supported. Validate your expression with Tests mode e081815.</p>
  </blockquote>
  
  <p>Only bold digits should be matched and not any e081815. I tried the following without the success. </p>
  
  <pre><code>(^[e\d])(\d)
  </code></pre>
  
  <p>Also, going forward, some more patterns needs to be added for exclusion. For e.g. cg636553 OR cg(any digits). Any help in this regards will be much appreciated. Thanks!</p>