Regex · Twitter/X handle · Free
Twitter/X handle regex.
Matches a Twitter/X handle of 1–15 word characters, with an optional leading @. Copy the pattern below, see what it matches, then tweak it for your exact case with the free generator.
The pattern
/^@?(\w{1,15})$/
✓ Matches
@jackmindloomhqai_builder✗ Doesn't match
@toolonghandleherehas space@@xNeed a variation? Generate one
Other common patterns
Parsing and pattern-matching are everywhere in AI systems. MindloomHQ teaches you to build them for real — agents, RAG, pipelines — with projects and certificates.
Explore MindloomHQ →