We’re improving Formula Genius. We’re redesigning the app and fixing issues along the way. Sorry for any disruption, and thank you for your patience.

Regex formula library

AI-generated regex patterns with validation. Extract emails, numbers, URLs, and more from unstructured text.

Extract email addresses

A common regex pattern for finding email addresses in unstructured text. Handles common formats and edge cases.

Regex · intermediate

Extract numbers from text

Pull numbers out of messy text data — prices, measurements, IDs, or any numeric value embedded in strings.

Regex · beginner

IP address regex

Match and validate IPv4 addresses in text. From quick-and-dirty patterns to strict 0-255 range validation.

Regex · advanced

URL extraction regex

Find and extract URLs from unstructured text. Match full URLs, domains, or specific URL components with common patterns.

Regex · intermediate

Password validation regex

Enforce password strength rules with regex. Minimum length, character requirements, and common patterns for registration forms.

Regex · intermediate

Email address validation

Ensuring that email addresses are correctly formatted is crucial for data integrity. This regex pattern helps you validate email formats reliably.

Regex · intermediate

US phone number regex

Matching US phone numbers can be tricky due to various formats. This regex pattern simplifies the process by capturing multiple formats.

Regex · intermediate

Extract URLs from text

Extracting URLs from text can be challenging, but with the right regex pattern, you can easily find and list them all.

Regex · intermediate

Match date formats

Matching dates can be tricky due to various formats. This regex pattern helps you capture MM/DD/YYYY, YYYY-MM-DD, and DD Month YYYY formats seamlessly.

Regex · intermediate

Validate IPv4 address

Validating an IPv4 address can be tricky, but using regex makes it straightforward by ensuring each octet is within the correct range.

Regex · advanced

Match US ZIP codes

Understanding ZIP code formats is essential for data validation. This regex pattern helps you accurately identify both standard and extended ZIP codes.

Regex · beginner

Extract names and domain

Named capture groups simplify extracting specific data from strings, making it easier to retrieve first names, last names, and domains.

Regex · advanced

Understanding regex lookahead

Regex lookahead assertions allow you to match a word only when it is followed or not followed by a specific pattern, enhancing your text processing capabilities.

Regex · advanced

Match whole words with regex

Using word boundary anchors in regex allows you to match complete words, ensuring no partial matches occur. This is essential for accurate text processing.

Regex · intermediate

Using backreferences in regex

Backreferences allow you to refer to previously matched groups, making it easier to validate repeated patterns or matching tags.

Regex · advanced

Multiline regex patterns

Matching patterns that span multiple lines can be tricky, but using the right anchors can simplify the process significantly.

Regex · intermediate

Extract HTML content non-greedy

Using non-greedy matching in regex can help you accurately extract content between HTML tags without capturing too much data.

Regex · intermediate

Browse ready-to-use formula templates for Excel, Google Sheets, SQL, and regex. Each formula includes a step-by-step breakdown, edge-case warnings, and real-world examples.

Can't find what you need?

Describe any formula in plain English and Formula Genius will generate it and explain it. Supported formulas can be checked with sample cases.