Skip to content

Developer

Regex Tester

Check JavaScript regular expressions against sample text with instant local feedback.

Input stays in this browser

Test JavaScript regular expressions locally against text you provide.

Use JavaScript regular expression syntax.

For example, gi.

Matches

0

No matches yet. Add test text or adjust the pattern.

Test a pattern

Enter a JavaScript regular expression, choose its flags, and paste the text you want to inspect. Matches and their zero-based indexes update as you type.

The tester uses the browser's native RegExp implementation, so the syntax and flags match JavaScript in modern browsers.

Useful flags

  • g finds every match instead of stopping after the first.
  • i ignores letter case.
  • m treats each line as a separate line for ^ and $.
  • s lets . include line breaks.

Privacy

Pattern, flags, and sample text stay in this browser tab. Nothing is uploaded.