Test regular expressions live. See all matches highlighted in real time.
Test regular expressions against any input string with live match highlighting. Supports all JavaScript RegExp flags (g, i, m, s, u). See match groups individually.
Upload your file using the tool above.
Adjust any settings to your preference.
Click the process button and wait for results.
Download your output using the download button.
JavaScript’s RegExp engine, so what you test here behaves identically in Node and the browser. Most syntax carries over to other languages, but be careful with lookbehind, named groups and Unicode property escapes — support for those varies between PCRE, Python and Go, so verify before porting a pattern.
g finds every match rather than stopping at the first. i ignores case. m makes ^ and $ match at each line rather than only the whole string. s lets the dot match newlines. u enables full Unicode handling. Most everyday patterns want g and i; add m when working line by line.
Almost certainly catastrophic backtracking — nested quantifiers like (a+)+ force the engine to try an exponential number of paths on a non-matching input. It is a real denial-of-service risk if the pattern runs on user input. Make the inner parts more specific, or replace greedy quantifiers with lazy or possessive alternatives.
Yes, Regex Tester is completely free. No signup, no account, and no watermark on outputs. A Pro tier is available for 100 AI ops/day and larger file sizes.
Regex Tester runs entirely in your browser. Your file is never uploaded — it is read, processed and saved locally, so it never reaches our servers or anyone else's. You can disconnect from the internet after the page loads and it still works.
Match details
gimsuLive matching: Uses JavaScript's native RegExp engine. Results update instantly as you type — no button needed. Matches are color-coded when multiple are found.
Capture groups: Wrap parts of your pattern in parentheses () to create capture groups. Expand a match in the results list to see each group's captured value.
Flags reference: g = find all matches, i = ignore case, m = treat ^ and $ as line boundaries, s = make . match newlines, u = enable full Unicode support.