You are here

protected function EmailLexer::getCatchablePatterns in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailLexer.php \Egulias\EmailValidator\EmailLexer::getCatchablePatterns()

Lexical catchable patterns.

Return value

string[]

Overrides AbstractLexer::getCatchablePatterns

File

vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailLexer.php, line 136

Class

EmailLexer

Namespace

Egulias\EmailValidator

Code

protected function getCatchablePatterns() {
  return array(
    '[a-zA-Z_]+[46]?',
    //ASCII and domain literal
    '[^\\x00-\\x7F]',
    //UTF-8
    '[0-9]+',
    '\\r\\n',
    '::',
    '\\s+?',
    '.',
  );
}