Regex Library

All Regex Patterns

Browse every regex pattern published on DuskTools in one crawlable index. Each destination page includes the raw expression, matching and non-matching examples, a breakdown of how the pattern works, and links into the regex tester when you want to adapt it for production use.

This hub is designed for discovery: compare adjacent patterns, jump straight into validation use cases like JWTs or semantic versions, and follow related links into CSS and JavaScript reference content without losing context.

Pattern pages

15

Pattern categories

6

Interactive helpers

3

Start With These Tools

Identity & Contact

Patterns for emails, phone numbers, and other user-facing identifiers.

2 patterns

Web & Routing

Common expressions for URLs, HTML fragments, and slug-like paths.

3 patterns

Network & Infrastructure

Copy-ready validators for IP addresses and hardware-oriented network formats.

3 patterns

Security & Validation

Formats that frequently show up in auth, payments, and input validation flows.

4 patterns
UUID

UUID format (any version)

Security & Validation
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Example matches

550e8400-e29b-41d4-a716-446655440000
JWT Token

JSON Web Token format (header.payload.signature)

Security & Validation
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$

Example matches

eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.abc123

Data Formats

Structured formats developers validate in APIs, config files, and release pipelines.

2 patterns
Semantic Version

Semantic versioning (major.minor.patch)

Data Formats
^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?$

Example matches

1.0.02.3.4-beta.1

Design & Frontend

Frontend-friendly patterns useful in styling, theming, and UI tooling.

1 patterns

Continue Exploring

Follow these related discovery pages to move from regex references into frontend snippets, CSS examples, and the larger DuskTools directory.