Interactive Regex Tester
Welcome! A Regular Expression (regex) is a sequence of characters that forms a search pattern. Use this tool to write, test, and understand regex patterns live.
Enter your pattern, provide a test string, select flags, and see the matches in real-time.
Regular Expression Pattern
Type your regex pattern here (e.g., \d+
for numbers, or cat
for the word "cat").
//g
Flags modify the search behavior. Hover over each flag for a detailed description.
Test String
Paste or type the text you want your regular expression to search within.
Results
No matches found, or pattern is empty.
(Your regex is valid if no error is shown above)