# Regex

> สร้าง อธิบาย หรือแก้ regular expression ใช้เมื่อผู้ใช้ขอ regex, pattern matching, หรือ find/replace ด้วย pattern

- **Type:** Skill
- **Install:** `agentstack add skill-apgamerinfo-boyser-ai-regex`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [apgamerinfo](https://agentstack.voostack.com/s/apgamerinfo)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [apgamerinfo](https://github.com/apgamerinfo)
- **Source:** https://github.com/apgamerinfo/boyser-ai/tree/main/skills/regex

## Install

```sh
agentstack add skill-apgamerinfo-boyser-ai-regex
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Skill: regex

1. ถามให้ชัด (หรือดูจากตัวอย่าง): อยาก **match อะไร** และ **ไม่ match อะไร** — ขอตัวอย่างจริงทั้งสองแบบ
2. สร้างทีละส่วน อย่ายัดทุกอย่างทีเดียว
3. **อธิบายทุกส่วน**ของ pattern ที่เขียน (anchor, group, quantifier, char class) ให้ผู้ใช้เข้าใจ ไม่ใช่โยน regex ลึกลับให้
4. **ทดสอบจริง** กับตัวอย่าง: รัน `python3 -c "import re; print(re.findall(r'...', '...'))"` หรือ grep ดูว่า match/ไม่ match ตามต้องการ
5. ระบุ flavor: Python `re`, JS, PCRE, grep -E ต่างกันบางจุด (lookbehind, \d ใน POSIX) — เขียนให้ตรงที่ผู้ใช้ใช้
6. เตือน catastrophic backtracking ถ้ามี nested quantifier เช่น `(a+)+`

prefer pattern ที่อ่านออก + ใช้ verbose/comment ถ้าซับซ้อน

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [apgamerinfo](https://github.com/apgamerinfo)
- **Source:** [apgamerinfo/boyser-ai](https://github.com/apgamerinfo/boyser-ai)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-apgamerinfo-boyser-ai-regex
- Seller: https://agentstack.voostack.com/s/apgamerinfo
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
