Regular Expressions 101

Library entries

username in url

Vote

-2

Regular Expression
pcre

/
^[A-Za-z]+[A-Za-z0-9]*(?:[-][A-Za-z0-9]+)*$
/

Description

Loading markdown...
Submitted by Ali Azmoude - 6 years ago