Regex Tester
Enter a regular expression pattern and test it against a string to see highlighted match results.
Matches
Match Result
Match List
How to Use the Regex Tester
Enter a regular expression pattern and a test string, then click "Run Test" to see the match results.
Flag Descriptions
- g (Global): Searches for all matches. When disabled, only the first match is returned.
- i (Case insensitive): Matches without distinguishing between uppercase and lowercase letters.
- m (Multiline): Makes ^ and $ match the start and end of each line.
Common Pattern Examples
- \d+ : One or more digits
- [a-zA-Z]+ : One or more letters
- \d{3}-\d{4} : Postal code format (e.g. 123-4567)
- [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} : Email address