Back to Regex Toolkit

Regex pattern library

12 curated, production-ready regular expressions. Each comes with a plain-English explanation, matching and non-matching examples, edge cases that bite people, and ready-to-paste code in 13 languages.

Validation

4 patterns

Patterns that answer 'is this input shaped correctly' for things like email addresses, URLs, and IPs.

Format

5 patterns

Patterns that match well-defined data formats — dates, versions, identifiers.

Extraction

1 pattern

Patterns for pulling structured tokens out of running text — JWTs, IDs, references.

Security

2 patterns

Patterns for security-adjacent checks — credit cards, password strength.

Not finding what you need?

The library covers the most-Googled patterns. For one-off regexes, describe what you want to match in plain English and the AI generator will build it for you.

Open the AI generator