Regex Tester

Test regular expressions live with matches and replace preview.

0
Matches
0
Capture groups

Without the g flag only the first match is tested. Empty patterns match at every position, which is normal regex behavior.

使用方法

  1. 一切都在您的浏览器本地运行:不会上传任何数据,无需账户。

关于

Enter a pattern (with optional g, i, m, u flags) and test text to see every match with its position and captured groups, plus a live preview of string.replace().

A reminder for daily use: regex cannot fully parse nested structures like HTML — use a parser for those, regex for the matches it was designed for.

一切都在您的浏览器本地运行:不会上传任何数据,无需账户。

Embed this tool

Customize and copy an iframe. Linking back helps both sites.

Open preview