Regular Expressions 101

Community Patterns

106

trim

ECMAScript (JavaScript)
trim string
Submitted by fp - 10 years ago

Email validation

18

Regular Expression
PCRE (PHP <7.3)

/
^([a-z0-9_\.-]+\@[\da-z\.-]+\.[a-z\.]{2,6})$
/
gm

Description

Loading markdown...
Submitted by tutsplus.com - 9 years ago