Quick reference for regular expression patterns
.Any character except newline\dDigit (0-9)\DNot a digit\wWord character (a-z, A-Z, 0-9, _)\WNot a word character\sWhitespace\SNot whitespace^Start of string$End of string\bWord boundary\BNot a word boundary*0 or more+1 or more?0 or 1{n}Exactly n times{n,}n or more times{n,m}Between n and m times[abc]Any of a, b, or c[^abc]Not a, b, or c[a-z]Character between a and z(abc)Capture group(?:abc)Non-capturing groupa|ba or bgGlobal - find all matchesiCase insensitivemMultiline - ^ and $ match line boundariessDotall - . matches newline^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$Email address^https?://[^\s]+$URL^\d{3}-\d{3}-\d{4}$Phone number (123-456-7890)^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$Hex color^(?=.*[A-Z])(?=.*[a-z])(?=.*\d).{8,}$Strong passwordRegex Cheatsheet is essential for developers working with regular expressions. Test patterns, match text, and learn regex syntax in a user-friendly interface with instant feedback.
All processing happens in your browser. Your data never leaves your device.
No server delays. Process your data instantly without waiting.
No data sent to servers means no risk of data breaches or leaks.
No registration, no limits, no hidden costs. Use as much as you need.
Need another tool? Browse all tools