Regular Expressions 101

Library entries

Mask an email regex II (no TLD)

Vote

1

Regular Expression
pcre

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

Description

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