Regular Expressions 101

Community Patterns

Minecraft Username Matcher

1

Regular Expression
PCRE (PHP <7.3)

/
^[a-zA-Z0-9_]{1,16}$
/
mg

Description

A regex that matches valid Minecraft usernames

Submitted by glen3b - 8 years ago