Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?!^)[^@](?=.+@)(?!$)
/
sg

Description

Replace letters in email address but left the first and last letter before and after @

Submitted by Kaibo - 2 years ago