---
title: "Regex Tester"
method: POST
path: "/v1/regextester"
tags: ["Text Processing"]
---

# Regex Tester

`POST /v1/regextester`

## Request

- Base URL: `https://api.apiverve.com`
- URL: `https://api.apiverve.com/v1/regextester`
- Auth: API key in header `x-api-key`

Test regular expressions with detailed analysis and results

## Request body

- object
  - `pattern` string, required: The regular expression pattern to test. Maximum 500 characters
  - `text` string, required: The text to test the pattern against. Maximum 20000 characters
  - `flags` string: Regex flags: g (global), i (case insensitive), m (multiline), s (dotall), u (unicode), y (sticky)
  - `test_type` string: Operation type
  - `replacement` string: Replacement text for 'replace' operation

## Response `200`

Successful Response

- object
  - `status` string: status
  - `error` string: error
  - `data` object: data

## Other responses

- `401`: Your request was not authorized, or your API Key was invalid
- `404`: Requested resource was not found
- `500`: A server error has occurred, try again later

---

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