Claude Skill

regex

Pattern matching.

LLM Mart · 0 points · 1 views 0 listing impressions 0 install-command copies
Download dhaupin-vant-models_public_vant_skills_vant-skill-regex-e1e348e.zip · 0 KB

Install

skills CLI npx skills add https://github.com/dhaupin/vant/tree/main/models/public/vant/skills/vant-skill-regex
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install dhaupin-vant@llmmart
Git git clone https://github.com/dhaupin/vant.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole dhaupin/vant collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

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.

Files (vant)
  • SKILL.md 834 B
    ---
    name: regex
    description: Pattern matching.
    license: MIT
    metadata:
      author: vant
      version: "1.0"
    ---
    
    # 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
    
    ```regex
    [abc]       # a, b, or c
    [^abc]      # not a, b, c
    [a-z]       # a to z
    \d          # digit
    \w          # word
    \s          # space
    ```
    
    ### 3. Groups
    
    ```regex
    (abc)       # Capture
    (?:abc)     # Non-capture
    (?<name>abc) # Named
    ```
    
    ### 4. Use
    
    ```javascript
    const match = str.match(/\d+/g)
    const valid = /^\S+@\S+\.\S+$/.test(email)
    ```
    
    ---
    
    **Role**: Regex Developer **Input**: String + pattern **Output**: Match
    
    > Patterns.

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.