Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b
/
gm

Description

This regular expression matches emails, params:

  1. EMail name: only latin, numbers, spec chars like line or dots.
  2. EMail domain: any characters, after dot should be minimum 2 letters. Look for examples how it will be matched in edit
Submitted by Anonymous - 18 days ago