Named Group Tester
Parse and display named capture groups from regex patterns
## Named Group Tester
Test and extract named capture groups from regular expressions. This tool helps you work with ES2018 named capture groups syntax `(?<name>...)` in your regex patterns.
**Features:**
- Parse and display all named capture groups from your regex pattern
- Test against input text and extract all matches with their named groups
- View results in an organized table format
- Support for batch processing (one test string per line)
- Export results to JSON/CSV format
- Comprehensive statistics about matches and groups
**Named Group Syntax:**
- Use `(?<name>...)` to define a named capture group
- Group names must be valid JavaScript identifiers
- Example: `(?<year>\\d{4})-(?<month>\\d{2})-(?<day>\\d{2})`
**Instructions:**
1. Enter your regex pattern with named groups
2. Optionally set regex flags (default: "g" for global matching)
3. Enter text to test against
4. Toggle batch mode to test multiple strings (one per line)
5. Adjust max results limit if needed
6. Click to see all matches with their named group values
**Use Cases:**
- Parsing and validating structured data (dates, URLs, coordinates)
- Extracting specific fields from log files
- Testing complex regex patterns before production use
- Learning and debugging named capture groups
API Documentation
Request Endpoint
POST /en/api/tools/named-group-tester
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| textInput | textarea | Yes | - |
| pattern | text | Yes | - |
| flags | text | No | - |
| batchMode | checkbox | No | Enable to process each line as a separate test |
| includeUnmatched | checkbox | No | Show groups with empty/null values in results |
| maxResults | 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-named-group-tester": {
"name": "named-group-tester",
"description": "Parse and display named capture groups from regex patterns",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=named-group-tester",
"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]