Back to Library
Web

Twitter Handle

Matches a Twitter handle (username).

Pattern
^@?(\w){1,15}$

Test Cases

@username Match
@too_long_username_123 No Match

Try it Live

Test and customize this pattern in our interactive editor

Open in Editor