Regular Expressions 101

Community Patterns

1...45678...902

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^[a-zA-Z0-9]+((_|-|\.)?[a-zA-Z0-9])*$
/
gm

Description

This is a basic validation expression for eBay Usernames.

Check eBay Username policy for all the rules. NOTE: Not all the rules are implemented in this expression.

Submitted by Safeer - 6 years ago