Regex Tester
Test regular expressions and see matches highlighted instantly.
Test regular expressions and see matches highlighted instantly.
Advertisement
Ad space reserved for Google AdSense
No matches found.
How to test regex patterns
Enter your regex pattern and flags, then paste or type your test text. Click Run Test to see matches highlighted and listed below.
Common regex flags
- g – global (find all matches)
- i – case insensitive
- m – multiline
Examples of regex patterns
Pattern: \\d+ Matches any sequence of digits Pattern: ^[A-Za-z]+$ Matches a line with only letters Pattern: (cat|dog) Matches either "cat" or "dog"
Why developers use regex testers
Regex testers help developers quickly build, debug, and validate regular expressions for use in code, data validation, and text processing.
Advertisement
Ad space reserved for Google AdSense