---
title: "Generate regex from plain English with explanations"
method: POST
path: "/v1/tools/regex-generate"
tags: ["AI"]
---

# Generate regex from plain English with explanations

`POST /v1/tools/regex-generate`

## Request

- Base URL: `https://archtools.dev`
- URL: `https://archtools.dev/v1/tools/regex-generate`
- Auth: API key in header `x-api-key`

## Request body

- object
  - `description` string, required: Plain English description of the pattern to match
  - `test_strings` string[]: Optional strings to test the generated regex against

## Response `200`

Generated regex pattern with explanation and test results

---

[API](https://skmtc.dev/archtools/apis/arch-tools-api.md) · [All operations](https://skmtc.dev/archtools/apis/arch-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/archtools/apis/arch-tools-api/revisions/ed6c1f974033?raw)
