# Regex

Manipulate and validate regular expressions through natural language commands or direct pattern testing. Generate complex patterns from simple descriptions and get detailed explanations of how they f…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add openclaw-ai/regex-engine-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list openclaw-ai/regex-engine-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get openclaw-ai/regex-engine-mcp regex_test

# Call a tool
npx -y @smithery/cli@latest tool call openclaw-ai/regex-engine-mcp regex_test '{}'
```

## Direct MCP Connection

Endpoint: `https://regex-engine-mcp--openclaw-ai.run.tools`

## Tools (5)

- `regex_test` — Test a regex pattern against input text. Returns matches (full match + groups), match count, and positions.
- `regex_explain` — Explain a regex pattern in plain English, token by token.
- `regex_build` — Build a regex from a natural language description (e.g., "match email addresses"). Returns pattern, explanation, and te…
- `regex_replace` — Apply a regex find-and-replace on text.
- `regex_extract` — Extract all matches from text with named capture group support.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get openclaw-ai/regex-engine-mcp <tool-name>
```
