devtools
Local developer utility

Regular Expression Tester

Test JavaScript regular expressions with flags, match positions, and capture groups. Your input stays in your browser while you work.

Regex Tester🔒 Processed locally
Regex flags
g: all matches · i: ignore case · m: multiline · s: dot matches newline · u/v: Unicode · y: sticky · d: indices
Regex quick reference

\\d digit · \\w word character · + one or more · ? optional · ^ / $ boundaries · (…) capture · (?<name>…) named capture

Presets are starting points, not complete input validators. Ctrl/⌘ + Enter runs the current operation.

How to use Regex Tester

Complete the labeled fields above, choose an action, and inspect the result before copying or downloading it.

Processing runs locally in this browser. No input is uploaded or sent to a conversion service.

Inputs

  • Pattern preset
  • Regular expression: ([a-z]+)
  • Regex flags: g: all matches · i: ignore case · m: multiline · s: dot matches newline · u/v: Unicode · y: sticky · d: indices
  • Operation
  • Replacement text: Use $1 for a capture group, $<name> for a named group, or $& for the whole match.
  • Test text: Paste the text to search

Related tools