---
title: "Regex Tester"
method: POST
path: "/api/v1/tools/regex-tester"
tags: ["tools"]
---

# Regex Tester

`POST /api/v1/tools/regex-tester`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/regex-tester`
- Auth: HTTP bearer

Test a regular expression against a string. Returns all matches with groups and indices.

## Request body

- object
  - `pattern` string
  - `flags` string
  - `text` string

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `matches` object[]
      - `match` string
      - `index` integer
      - `groups` string[]
    - `count` integer

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

[API](https://skmtc.dev/toolforte/apis/toolforte-api.md) · [All operations](https://skmtc.dev/toolforte/apis/toolforte-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolforte/apis/toolforte-api/revisions/4d814d484dfc?raw)
