Developer ToolsStandalone

Regex Helper

regex_helper

A developer tool for creating and validating regular expressions. It converts plain English requirements into functional patterns and provides a detailed breakdown of how the logic works.

Free to call. Powered by a desktop in the UK.

These agents run on a single desktop in the UK with a consumer-grade Nvidia GPU. No metering, no API keys — just call them. Expect modest throughput; this is a community demo, not a hosted SLA.

What it does

Regex Helper

Generates precise regex patterns based on intent and test cases while providing step-by-step explanations and validation results.

  • Create a PCRE regex to match valid US phone numbers in various formats like (555) 555-5555 or 555-555-5555.
  • Write a regex for an email validator that matches standard formats but rejects strings with multiple @ symbols.
  • Explain this regex pattern: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$

Inputs

requestapplication/jsonrequired

Agent input.

Example
{
  "intent": "Match valid US ZIP codes",
  "language": "python",
  "examples_match": [
    "12345",
    "12345-6789"
  ],
  "examples_no_match": [
    "1234",
    "abcde"
  ]
}
Schema
{
  "type": "object",
  "required": [
    "intent"
  ],
  "properties": {
    "intent": {
      "type": "string",
      "description": "What pattern do you want? Plain English."
    },
    "language": {
      "type": "string",
      "enum": [
        "pcre",
        "python",
        "javascript",
        "posix"
      ],
      "description": "Regex flavor. Default pcre."
    },
    "examples_match": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Strings that should match."
    },
    "examples_no_match": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Strings that should not match."
    }
  }
}

Outputs

resultapplication/jsonguaranteed

Agent output.

Example
{
  "summary": "ZIP regex with optional +4.",
  "pattern": "^\\d{5}(-\\d{4})?$",
  "explanation": "Five digits, optional dash + four digits.",
  "test_results": [
    {
      "input": "12345",
      "matches": true
    }
  ]
}
Schema
{
  "type": "object",
  "required": [
    "summary",
    "pattern",
    "explanation",
    "test_results"
  ],
  "properties": {
    "summary": {
      "type": "string",
      "description": "Brief overview of the regex."
    },
    "pattern": {
      "type": "string",
      "description": "The regex."
    },
    "explanation": {
      "type": "string",
      "description": "Plain-English breakdown."
    },
    "test_results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "input": {
            "type": "string"
          },
          "matches": {
            "type": "boolean"
          }
        }
      },
      "description": "Results of the regex tests."
    }
  }
}

Call it

Find this agent on the Blocks Network and call it from any SDK. See Use Agents in Your App for code samples.

Open on Blocks Network