Test patterns without second-guessing what matched.

Paste a regex, set flags, and inspect every match with positional and named capture groups. The scanner lists all matches even if you forget the g flag.

MatchesGroupsFlags

Common Patterns

Input

Regex setup

/ /gi

Validation

Pattern status

Pattern matched the input

Review the preview and capture groups below to inspect each occurrence.

60 Pattern chars
2 Flag chars
102 Input chars
2 Listed matches
g

Global: match all occurrences.

i

Ignore case: case-insensitive.

m

Multiline: anchors ^ and $.

s

DotAll: . matches newlines.

Preview

Highlighted text

Primary link: https://usefultoolsonline.com/regex-checker Backup link: http://localhost:5173/dev-tools

Matches

Occurrence breakdown

Match 1 Index 14 · Len 43
https://usefultoolsonline.com/regex-checker
$1 https
$2 usefultoolsonline.com
$3 /regex-checker
protocol https
host usefultoolsonline.com
path /regex-checker
Match 2 Index 71 · Len 16
http://localhost
$1 http
$2 localhost
$3 (undefined)
protocol http
host localhost
path (undefined)

Other Live Tools

Continue through the library

/diff-checker

Diff Checker

Compare revisions side by side and surface insertions, deletions, and small changes instantly.

/json-formatter

JSON Formatter

Beautify, validate, minify, and sort JSON payloads without juggling extensions or IDE tabs.

/unit-converter

Unit Converter

Convert between common units of length, mass, temperature, time, and digital storage.

/roman-numeral-converter

Roman Numeral Converter

Convert standard numbers to Roman numerals and vice-versa with instant validation.

/age-calculator

Age Calculator

Calculate exact age in years, months, and days, along with life milestones and countdowns.

/color-palette

Color Palette

Pick colors, generate formats, and explore shades with a focused design utility.

/base64-converter

Base64 Converter

Encode and decode strings to and from Base64 format with full UTF-8 support.

/hash-generator

Hash Generator

Generate MD5, SHA-1, SHA-256, and SHA-512 hashes instantly for any input string.

/qr-code

QR Code Utility

Generate QR codes from text or scan existing ones from images instantly.

/barcode-utility

Barcode Utility

Generate various 1D barcode formats or read them from images and photos.

/password-generator

Password Generator

Create strong, random passwords with customizable length and character sets.

/word-character-counter

Word Counter

Analyze text length, word count, reading time, and detailed character metrics.

/case-converter

Case Converter

Change text casing to UPPERCASE, lowercase, Title Case, and more instantly.

/url-encoder-decoder

URL Encoder/Decoder

Safely encode and decode URL parameters or full URI strings for web development.

/duplicate-line-remover

Duplicate Line Remover

Clean up lists by removing identical lines, with options for case sensitivity and whitespace.

/markdown-converter

Markdown Converter

Convert Markdown to clean HTML or turn existing HTML back into readable Markdown.

/cron-job-generator

Cron Job Generator

Build cron expressions easily with a visual editor and real-time human-readable descriptions.

/image-converter

Image Converter

Convert images between PNG, JPG, and WebP formats instantly with client-side processing.

/equation-visualizer

Equation Visualizer

Visualize 2D mathematical equations on an interactive coordinate plane.

/html-css-js-minifier

HTML/CSS/JS Minifier

Minify markup, styles, and scripts from a single route with safe browser-side processing.