Vant skill regex
Pattern matching.From its SKILL.md
npx -y skills add dhaupin/vant --skill vant-skill-regexAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 16 stars16 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
0.8 KB, 244 tokens by cl100k_base, as published. Nobody here has run it
Regex
Pattern matching.
When To Use
- Find patterns
- Validate input
- Extract data
What To Do
1. Basics
| Pattern | What |
|---|---|
| . | Any character |
| * | 0 or more |
| + | 1 or more |
| ? | 0 or 1 |
| ^ | Start |
| $ | End |
2. Classes
[abc] # a, b, or c
[^abc] # not a, b, c
[a-z] # a to z
\d # digit
\w # word
\s # space
3. Groups
(abc) # Capture
(?:abc) # Non-capture
(?<name>abc) # Named
4. Use
const match = str.match(/\d+/g)
const valid = /^\S+@\S+\.\S+$/.test(email)
Role: Regex Developer
Input: String + pattern
Output: Match
Patterns.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.