Regex TesterTest JavaScript regular expressions against sample text, right in your browser.
Test string
Highlighted matches
Matches
Your pattern and text are tested in your browser. Nothing is uploaded to BroBroGo.
FAQ
Is it safe to paste my text here?
Yes. Matching happens entirely in your browser — nothing is sent to BroBroGo.
What do the g/i/m/s flags mean?
g finds every match instead of just the first. i ignores case. m makes ^ and $ match the start and end of each line instead of just the whole string. s lets . also match line breaks.
Why did it say my pattern is taking too long?
Some patterns trigger catastrophic backtracking — the engine tries an exponential number of combinations before giving up, which can freeze a browser tab. This tool runs matching in a background worker and cancels it after 2 seconds if that happens, so the page itself never locks up. Try simplifying nested repetition like (a+)+.