R
Resizzer
开发者工具 100% 浏览器本地隐私保护

免费在线正则表达式测试器

在浏览器安全沙箱中即时检验正则表达式,快速定位语法错误并解析匹配结果。

Presets:
/ / g
Flags:
Matches Found: 0 matches
如何使用此工具

Three simple steps to process your files

01

Enter Regular Expression

Type or paste your pattern in the regex field, selecting any desired matching flags.

02

Input Test Text

Paste the string or log excerpt you want to validate against your pattern.

03

Inspect Matches & Groups

View highlighted matching substrings, total match counts, and capture group breakdowns in real time.

核心功能亮点

Engineered for speed, fidelity & security

Full Flag Configuration

Toggle global (g), case-insensitive (i), multiline (m), dotAll (s), unicode (u), and sticky (y) flags.

Real-Time Match Highlighting

Visual color-coded highlight overlay on your test string updating as you type.

Capture Group Explorer

Detailed breakdown of full matches and numbered or named capture groups with character positions.

Instant Syntax Error Diagnostics

Immediate feedback on unescaped parentheses, invalid range quantifiers, and syntax mistakes.

One-Click Pattern Presets

Built-in regex templates for emails, URLs, dates, phone numbers, and IPv4 addresses.

Safe Sandbox Execution

Pure native RegExp engine parsing without unsafe eval() or server transmission.

FAQ

常见问题解答

Which JavaScript regex flags are supported?
The tester supports g (global), i (ignore case), m (multiline), s (dotAll), u (unicode), and y (sticky).
How are capture groups displayed?
Matches are numbered sequentially, with each group (Group 1, Group 2, etc.) listed alongside its character indices and matched value.
Is it safe to test proprietary data or secrets?
Yes. The regular expression engine runs 100% locally within your browser. Nothing is sent over the network.
Can catastrophic backtracking freeze my browser?
We wrap pattern execution in safe try-catch blocks and safeguard iteration to prevent UI freezes on problematic expressions.
相关实用工具

Explore complementary utilities