constant SPAMSPAN_EMAIL in SpamSpan filter 6
Same name and namespace in other branches
- 7 spamspan.module \SPAMSPAN_EMAIL
Set up a regex constant to split an email address into name and domain parts. The following pattern is not perfect (who is?), but is intended to intercept things which look like email addresses. It is not intended to determine if an address is valid. It will not intercept addresses with quoted local parts.
@constant string SPAMSPAN_EMAIL
2 uses of SPAMSPAN_EMAIL
- spamspan in ./
spamspan.module - Scan text and replace email addresses with span tags
- _spamspan_output in ./
spamspan.module - A helper function for the callbacks
File
- ./
spamspan.module, line 24 - This module implements the spamspan technique (http://www.spamspan.com ) for hiding email addresses from spambots.
Code
define('SPAMSPAN_EMAIL', "\n ([-\\.\\~\\'\\!\\#\$\\%\\&\\+\\/\\*\\=\\?\\^\\_\\`\\{\\|\\}\\w\\+^@]+) # Group 1 - Match the name part - dash, dot or\n #special characters.\n @ # @\n ((?: # Group 2\n [-\\w]+\\. # one or more letters or dashes followed by a dot.\n )+ # The whole thing one or more times\n [A-Z]{2,6} # with between two and six letters at the end (NB\n # .museum)\n )");