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