ProUtils

正则表达式测试

实时匹配和捕获组显示测试正则表达式。

//g
Contact us at hello@example.com or support@test.org

匹配: 2

#1hello@example.com@14
Group 1: helloGroup 2: example.com
#2support@test.org@35
Group 1: supportGroup 2: test.org

How to Use

  1. 1

    Enter your regular expression pattern in the Pattern field.

  2. 2

    Type or paste your test string in the Test String field.

  3. 3

    View highlighted matches and capture groups in real time. Toggle flags like g, i, m, s as needed.

Features

Live Match Highlighting

Matches are highlighted in the test string in real time as you type your pattern.

Capture Group Display

See all named and numbered capture groups listed for each match.

Flag Controls

Toggle global (g), case-insensitive (i), multiline (m), and dotAll (s) flags with checkboxes.

Match Count

The total number of matches is shown so you can quickly verify your pattern is working correctly.

FAQ

支持哪些标志?

全局(g)、忽略大小写(i)、多行(m)、dotAll(s)。

显示捕获组吗?

是的,显示每个匹配的命名和编号捕获组。

相关工具

开发者工具