How Regex Tester works
Enter a JavaScript regular expression and test string to see matches highlighted in real time with capture group details.
Executes patterns in a Web Worker with a 3-second timeout to protect against catastrophic backtracking.
Questions
- Which regex flavor is used?
- The tool uses JavaScript's built-in RegExp engine, which supports most Perl-compatible syntax including lookaheads and named groups.
- What happens with slow patterns?
- Patterns run in a Web Worker with a 3-second timeout. If the pattern causes excessive backtracking, you will see a warning.
- Which flags are available?
- Global (g), case-insensitive (i), multiline (m), and dotall (s). Toggle them with the buttons above the pattern input.
- Is there a match limit?
- Yes. The tool displays up to 100 matches and stops execution after 10,000 matches to prevent the browser from freezing.
More Generate tools
- QR CodeURL, text, or contact card
- ShareX Config BuilderGenerate a .sxcu custom uploader
- Color PaletteHEX / RGB / HSL converter
- Cron BuilderHuman-readable schedules
- Lorem IpsumParagraphs, sentences, words
- Aspect RatioCalculate and convert aspect ratios
- Markdown TableVisual editor for markdown tables
- Placeholder ImageCustom placeholder images for mockups
- Meta Tag PreviewerSee how links unfurl across platforms
- Contrast CheckerWCAG AA and AAA contrast ratio
- Favicon GeneratorEmoji, text, or image favicons
- Secret GeneratorRandom keys and passwords
- Theme TokensThis site's color roles, live
- UUID GeneratorBulk v4 and v7 UUIDs
- Date CalculatorDays between dates, date math, time zones
- Chmod CalculatorUnix permissions: octal, symbolic, command