Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

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-tester

Parameters

NameTypeRequiredDescription
patterntextYes—
subjecttextareaNo—
flag_icheckboxNo—
flag_mcheckboxNo—
flag_scheckboxNo—
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).
Browse toolsOpen tool

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools
checkbox
No
—
flag_xcheckboxNo—
flag_gcheckboxNo—
replacementtextNo—
unicodeClassescheckboxNo—

Response format

HTML result

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

Questions or issues? Contact [email protected]