Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\A^[A-Za-z\d_-]+$\z
/

Description

Nickname validation. Only: letters

_ One line. Tested with RoR

Submitted by Paramoshkin Andrew - 9 years ago