Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(?<username>\w+)\.(?<group>\w+)(\@masaged\.com)*
/
igmux

Description

Allow only two dots email address, for username.group@domain.tld

Submitted by Emad Abughali - 9 years ago