);
/**
- * Email regular expression.
+ * Returns a hash with replace patterns.
*
- * @var string
+ * @return array Patterns hash.
*/
- protected $_regexp = <<<EOR
+ public function getPatterns()
+ {
+ $this->_regexp = <<<EOR
/
# Version 1: mailto: links with any valid email characters.
# Pattern 1: Outlook parenthesizes in square brackets
/ix
EOR;
- /**
- * Returns a hash with replace patterns.
- *
- * @return array Patterns hash.
- */
- public function getPatterns()
- {
return array('regexp_callback' => array(
$this->_regexp => array($this, 'regexCallback')
));