Browse small regular-expression patterns for common validation and search jobs.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Each entry pairs a job with expression fragments and explains anchors, classes, and quantifiers. The snippets are starting points rather than complete parsers for the underlying format.
email:
Description: Email address validation
Pattern: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
Example: [email protected]
Form validation, log queries, and code reviews reuse readable regex fragments.