附加组件

正则测试器

Regex tester

模式、标志与高亮匹配

实时预览

提示词正文

Build a regex tester with Tailwind CSS: a pattern input with live syntax validation and a flag toggle row (g, i, m, s), a test-string textarea, and a results panel showing the match count, capture groups as a numbered table, and the test string re-rendered with each match highlighted in alternating tints. Show match positions and lengths on hover, handle invalid patterns with an inline error instead of crashing, and offer a small cheat-sheet popover with common constructs.

提示词保持英文原文——直接粘贴进 Claude、Cursor、v0 或任何 AI 编程工具即可使用。

怎么用

模式输入实时校验+标志开关;匹配计数与捕获组表;原文高亮所有匹配;非法模式内联报错。

同类提示词 · 附加组件

© 2026 Genisource Vibe · 提示词详情