Use cases
- Validate JavaScript regular expressions
- Inspect capture groups and match positions
- Apply common snippets for email, URL, ISO date, UUID, IPv4, HEX color, and slug patterns
Test JavaScript regular expressions, inspect matches, and keep common patterns close by.
Input / Output
Input, output, and copy actions stay in this main surface. Examples and reference checks are separated below.
Local session
Input state is saved only in this browser so you can restore the last workspace without an account.
Open examples, checks, and related tools only after the primary input/output flow is done.
Use cases
Before copying
Common failure cases
Related tools
Guides
Open examples, checks, and related tools only after the primary input/output flow is done.
^[^\s@]+@[^\s@]+\.[^\s@]+$https?:\/\/[^\s"'<>]*[A-Za-z0-9/#]\b(?:25[0-5]|2[0-4]\d|1?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|1?\d?\d)){3}\bPattern presets
Apply common production patterns, then verify them against your own sample before copying.
Find common email addresses in logs, forms, and pasted payloads.
\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\bURL
Extract http and https URLs without swallowing quotes, angle brackets, or trailing sentence punctuation.
https?:\/\/[^\s"'<>]*[A-Za-z0-9/#]ISO date
Match yyyy-mm-dd dates before validating calendar rules in code.
\b\d{4}-\d{2}-\d{2}\bUUID v4
Find UUID values in request IDs, fixtures, and copied API responses.
\b[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\bIPv4
Spot IPv4 addresses in server logs and DNS troubleshooting notes.
\b(?:25[0-5]|2[0-4]\d|1?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|1?\d?\d)){3}\bHex color
Collect CSS hex colors including short, six-digit, and alpha forms.
#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\bSlug
Match lowercase URL slugs used in routes, docs, and content IDs.
\b[a-z0-9]+(?:-[a-z0-9]+)*\bMatches
2
Effective flags
g
Inspect positions and capture groups before copying the pattern.
2026-06-05Group 1: 2026Group 2: 06Group 3: 052026-07-01Group 1: 2026Group 2: 07Group 3: 01Useful next steps
Copy-ready output
[
{
"index": 1,
"text": "2026-06-05",
"position": 15,
"groups": [
"2026",
"06",
"05"
]
},
{
"index": 2,
"text": "2026-07-01",
"position": 30,
"groups": [
"2026",
"07",
"01"
]
}
]Draft a starting pattern from positive and negative examples, then test it above before copying.
Confidence
92%
Positive matches
2
Negative matches
0
Suggested pattern
\b\d{4}-\d{2}-\d{2}\b