Regular Expressions 101

Library entries

Mask an email regex

Vote

4

Regular Expression
pcre

/
(?<=.).(?=[^@]*?.@)|(?:(?<=@.)|(?!^)\G(?=[^@]*$))(.)(?=.*\.)|(?:(?<=\.)(?=[^.]+$)|(?!^)\G(?=[^@.]*$))[^.](?!$)
/
gm

Description

Loading markdown...
Submitted by Wiktor Stribiżew - 6 years ago