Regex Cheatsheet - Regular Expression Quick Reference

Quick reference for regular expression patterns. Character classes, quantifiers, anchors, and common patterns.

Share
Back to Regex Cheatsheet

Password Strength Pattern

Common Pattern

Match password: 8+ chars with uppercase, lowercase, digit, special

Pattern

^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$

Syntax

Explanation

Uses multiple lookaheads to ensure each character type appears at least once.

Examples

Pass@1234

Valid strong password

Matches: Pass@1234

Related Tools

More Text Tools