Test patterns, inspect matches, and copy expressions quickly.
Common email shape for form validation.
/^[\w.-]+@[\w.-]+\.[A-Za-z]{2,}$/i
Find http and https URLs in text.
/https?:\/\/[^\s]+/gi
Match 3 or 6 digit CSS hex colors.
/#(?:[0-9a-fA-F]{3}){1,2}\b/g
Match YYYY-MM-DD dates.
/\b\d{4}-\d{2}-\d{2}\b/g
Tokenize word-like chunks.
/\b\w+\b/g
Match RFC-style UUID strings.
/\b[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\b/gi
Find compact JSON Web Tokens.
/\beyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*\b/g
Match flexible US phone numbers.
/\b(?:\+1[-.\s]?)?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}\b/g
Capture Markdown link label and target.
/\[([^\]]+)\]\(([^)]+)\)/g
Match semver-like versions.
/\bv?\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?\b/g
Glowsticks
glow
glowstick