Development
C# Regex Tester (.NET)
Test .NET/C# regular expressions online with named groups ((?<name>…)), IgnoreCase/Multiline/Singleline options, match highlighting, capture-group tables, a ready-to-paste C# snippet and an IgnorePatternWhitespace preview.
html· HTML resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/csharp-regex-tester' \
-H 'Content-Type: application/json' \
-d '{"pattern":"(?<year>\\d{4})-(?<month>\\d{2})-(?<day>\\d{2})","subject":"deployed 2026-09-01, rollback window 2026-09-03","flag_i":false,"flag_m":false,"flag_s":false,"flag_n":false,"flag_x":false,"flag_g":true,"replacement":"${name} / $1","unicodeClasses":true}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/csharp-regex-testerParameters
| Name | Type | Required | Description |
|---|---|---|---|
| pattern | text | Yes | — |
| subject | textarea | No | — |
| flag_i | checkbox | No | — |
| flag_m | checkbox | No | — |
| flag_s | checkbox | No | — |
| flag_n |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-csharp-regex-tester": {
"name": "csharp-regex-tester",
"description": "Test .NET/C# regular expressions online with named groups ((?<name>…)), IgnoreCase/Multiline/Singleline options, match highlighting, capture-group tables, a ready-to-paste C# snippet and an IgnorePatternWhitespace preview.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=csharp-regex-tester",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "csharp-regex-tester",
"arguments": {
"pattern": "(?<year>\\d{4})-(?<month>\\d{2})-(?<day>\\d{2})",
"subject": "deployed 2026-09-01, rollback window 2026-09-03",
"flag_i": false,
"flag_m": false,
"flag_s": false,
"flag_n": false,
"flag_x": false,
"flag_g": true,
"replacement": "${name} / $1",
"unicodeClasses": true
}
}
}Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).