Guest User

Untitled

a guest
Feb 21st, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. regexp = / # We're using this regular expression to find email addresses that are not already linked
  2. #{RFC822::EmailAddrSpec} # This is the RFC822 regular expression string to match valid email addresses, including foo@bar
  3. \b # This word break is ensuring that it doesn't grab the "m" from .com, for example
  4. (?!(<\/a>|["']?>|\.\w{2,})) # This negative look-ahead detects whether the email address is already auto-linked, and is not a .com
  5. /x
Add Comment
Please, Sign In to add comment