Multi-Pattern Matcher
Match multiple regex patterns against text in one operation
**Pattern Format (one per line):**
```
Label|Pattern|Flags
```
**Examples:**
- `Email|\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b|gi`
- `Phone|\b\d{3}-\d{3}-\d{4}\b|g`
- `URL|https?://[^\s]+|gi`
**Flags (optional):**
- `g` - Global (find all matches)
- `i` - Case insensitive
- `m` - Multiline
- `s` - Dot matches newline
- `u` - Unicode
**Notes:**
- Flags are optional (defaults to 'g')
- Patterns with named groups will extract those values
- Results are sorted by match count (descending)
API Documentation
Request Endpoint
POST /en/api/tools/multi-pattern-matcher
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| textInput | textarea | Yes | - |
| patterns | textarea | Yes | One pattern per line: Label|Pattern|Flags (flags optional) |
| caseSensitive | checkbox | No | - |
| showEmptyPatterns | checkbox | No | - |
| maxMatchesPerPattern | number | No | - |
Response Format
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
JSON Data:
JSON Data
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-multi-pattern-matcher": {
"name": "multi-pattern-matcher",
"description": "Match multiple regex patterns against text in one operation",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=multi-pattern-matcher",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]