AGENT SKILL

regex-helper

Test regular expressions against text, show matches, and explain regex patterns.

License 许可
Apache-2.0
所属仓库
riley1802/HUSK
最近更新
2026-04-15
Stars
★ 0
Forks
0

01 前言 Front Matter

name
regex-helper
description
Test regular expressions against text, show matches, and explain regex patterns.

02 资源文件 2

03 SKILL.md 正文

Regex Helper

This skill tests regex patterns against input text and returns all matches.

Examples

  • "Test the regex \d+ against 'I have 42 cats and 7 dogs'"
  • "Find all email addresses in this text: ..."
  • "Does 'hello-world_123' match ^[a-z-_0-9]+$ ?"

Instructions

Call the run_js tool with the following exact parameters:

  • script name: index.html
  • data: A JSON string with the following fields:
    • pattern: the regex pattern (without delimiters, e.g., "\d+")
    • text: the text to test against
    • flags: (optional) regex flags like "gi" for global case-insensitive. Default is "g".

04 同仓库更多 Skills