JavaScript
Python
Validate structure with regex, but confirm meaning with the platform: a username that matches may still be taken, and a token that matches may be revoked. Username validator
Tool
Copy a pattern, then try it against your own samples before trusting it.
Validate structure with regex, but confirm meaning with the platform: a username that matches may still be taken, and a token that matches may be revoked. Username validator