Regular Expressions 101

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(\ ?){1,}[._\-\w]{1,25}\@[\-\w]{1,25}(\.[\-\w]{1,25}){1,3}?([\ ]{1,}?)?$
/

Description

accept empty spaces at start and end

Submitted by Emanuel Lima (jose.emanuel.lima@gmail.com) - 9 years ago