Utill.net

Regex Tester

Live Matches & Capture Groups

Test JavaScript regular expressions with live match highlighting, capture groups, and g, i, m flag controls.

What is this tool?

This regex tester runs JavaScript regular expressions against sample text and shows matches, match count, and capture groups. It supports the common g, i, and m flags exposed by the UI.

Because it uses the browser's JavaScript regex engine, behavior matches JavaScript semantics rather than PCRE, Python, .NET, or RE2. Lookbehind support, Unicode behavior, escaping, and backtracking characteristics depend on the JavaScript runtime.

Use it to build validation patterns, debug capture groups, test log extractors, verify filename rules, and understand how a pattern behaves before moving it into application code.

How to use

  1. Enter a JavaScript regex pattern without surrounding slash delimiters.
  2. Toggle the g, i, and m flags as needed.
  3. Paste sample text into the test string area.
  4. Review match count, highlighted matches, and capture groups.

Examples

Input / settingOutputNotes
pattern \d+; text Order 1231 match: 123Find a numeric sequence.
pattern user-(\d+); text user-421 match: user-42; capture group 42Extract an ID.
pattern [; text anythingInvalid regexSyntax errors are reported.

Related tools & concepts

Last reviewed: 2026-05-08