title: regular expression for emails NOT ending with replace script
body: <p>I'm currently modifying my regex for this:</p>
  
  <p><a href="https://stackoverflow.com/questions/2782031/extracting-email-addresses-in-an-html-block-in-ruby-rails">Extracting email addresses in an html block in ruby/rails</a></p>
  
  <p>basically, im making another obfuscator that uses ROT13 by parsing a block of text for all links that contain a mailto referrer(using hpricot). One use case this doesn't catch is that if the user just typed in an email address(without turning it into a link via tinymce)</p>
  
  <p>So here's the basic flow of my method:
  1. parse a block of text for all  tags with href="mailto:..."
  2. replace each  tag with a javascript function that changes this into ROT13 (using this script: <a href="http://unixmonkey.net/?p=20" rel="nofollow noreferrer">http://unixmonkey.net/?p=20</a>)
  3. once all links are obfuscated, pass the resulting block of text into another function that parses for all emails(this one has an email regex that reverses the email address and then adds a span to that email - to reverse it back)</p>
  
  <p>step 3 is supposed to clean the block of text for remaining emails that AREN'T in a href tags(meaning it wasn't parsed by hpricot). Problem with this is that the emails that were converted to ROT13 are still found by my regex. What i want to catch are just emails that WEREN'T CONVERTED to ROT13. </p>
  
  <p>How do i do this? well all emails the WERE CONVERTED have a trailing "'.replace" in them. meaning, i need to get all emails WITHOUT that string. so far i have this regex:</p>
  
  <p>/\b([A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}('.replace))\b/i</p>
  
  <p>but this gets all the emails with the trailing '.replace i want to get the opposite and I'm currently stumped with this. any help from regex gurus out there? </p>
  
  <p>MORE INFO:</p>
  
  <p>Here's the regex + the block of text im parsing:</p>
  
  <p><a href="http://www.rubular.com/r/NqXIHrNqjI" rel="nofollow noreferrer">http://www.rubular.com/r/NqXIHrNqjI</a></p>
  
  <p>as you can see, the first two 'email addresses' are already obfuscated using ROT13. I need a regex that gets the emails ohhellzyeah@ribute.com and kaboom@yahoo.com</p>