Regex Tester
Test and debug regular expressions with real-time highlighting. Validate patterns and see matches instantly.
Highlighted Matches
No matches to highlightCommon Patterns
Regex Cheat Sheet
Character Classes
.- Any character except newline\w- Word character [a-zA-Z0-9_]\d- Digit [0-9]\s- Whitespace character[abc]- Any character in the set[^abc]- Any character not in the set
Quantifiers
*- 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
Anchors
^- Start of string/line$- End of string/line\b- Word boundary
Groups & Lookarounds
(abc)- Capturing group(?:abc)- Non-capturing group(?=abc)- Positive lookahead(?!abc)- Negative lookahead
You might also need
Convert text between different cases
Encode or decode text to and from Base64 format
Encode or decode URLs and query parameters
Convert files between PDF and Word formats
Convert images between JPG and PNG formats
Convert HEIC images from iPhone/iOS to JPG format
Format, validate and beautify JSON data
Compare text differences between two files or snippets
Generate secure passwords with customizable options
Generate UUIDs (v1, v4) for unique identifiers
Generate QR codes and barcodes from text
Create favicons from images for your website
Decode and inspect JWT tokens
Generate and validate cron expressions
Calculate aspect ratios and resize dimensions
Convert between timestamps and human-readable dates