All Tools / Developer & Data Pattern Testing

Regex Checker

Test and debug regular expressions in real time with match highlights, capture groups, and flags.

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://usefulonlinetools.app/regex-checker Backup link: http://localhost:5173/dev-tools

Matches

Occurrence breakdown

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

Related in Developer & Data

More tools in this category

View all tools →