Skip to main content
Calctrove Calctrove

Regex Tester

Regex Tester

Test regex patterns quickly with flags, groups, and extracted match preview.

Processed locally in your browser. We do not store or upload your data.

InputsRegex test0 matches • Auto-updateLive

File input

Choose a file

Click, drop, or paste from clipboard.

Flags

gm
More actions
Input: manual

Result

Ready to test regex.

Tip: enable Global (g) to extract all matches, not only the first one.

Copy matches copies extracted rows only. Copy report details includes pattern, flags, and summary.

Flow
  • Compile regex pattern with selected flags.
  • Run pattern against text to collect matches.
  • Return indexes and capture groups for each match.
Example

Worked example: extract order IDs

  1. 1 Pattern = Order #[A-Z]-\\d+
  2. 2 Input contains multiple order lines.
  3. 3 Tester lists each match with index and captured groups.

You can validate exact match behavior before shipping regex code.

How
  1. Enter regex pattern and select needed flags.
  2. Paste sample input text in the editor.
  3. Run test or enable live mode to inspect matches instantly.
Cases
  • Debug parsing patterns for logs and extracted text.
  • Verify capture groups for replacement workflows.
  • Compare behavior of global and multiline flags quickly.
Avoid
  • Forgetting Global flag when expecting more than one match.
  • Escaping backslashes incorrectly in complex patterns.
  • Ignoring multiline behavior for line-oriented data.
FAQ
Can I test capture groups?

Yes, capture groups are shown for each match row.

Does it support common flags?

Yes, the tool supports global, ignore-case, multiline, dotall, unicode, and sticky flags.

Is processing done locally?

Yes, regex matching runs entirely in your browser.

Switch
Switch12