---
title: "Execute placeholder-regex evaluator"
method: POST
path: "/v2/evaluators/placeholder-regex/execute"
tags: ["evaluators"]
---

# Execute placeholder-regex evaluator

`POST /v2/evaluators/placeholder-regex/execute`

Validate text against a placeholder regex pattern

**Request Body:**
- `input.placeholder_name` (string, required): The name of the placeholder to substitute
- `input.placeholder_value` (string, required): The value to substitute into the regex placeholder
- `input.text` (string, required): The text to validate against the regex pattern
- `config.should_match` (bool, optional): Whether the text should match the regex
- `config.case_sensitive` (bool, optional): Case-sensitive matching
- `config.dot_include_nl` (bool, optional): Dot matches newlines
- `config.multi_line` (bool, optional): Multi-line mode

## Request body

- RequestPlaceholderRegexRequest
  - `config` RequestPlaceholderRegexConfigRequest
    - `case_sensitive` boolean
    - `dot_include_nl` boolean
    - `multi_line` boolean
    - `should_match` boolean
  - `input` RequestPlaceholderRegexInput, required
    - `placeholder_name` string, required
    - `placeholder_value` string, required
    - `text` string, required

## Response `200`

OK

- ResponsePlaceholderRegexResponse
  - `is_valid_regex` boolean

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/traceloop/apis/traceloop-api.md) · [All operations](https://skmtc.net/traceloop/apis/traceloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/traceloop/traceloop-api/versions/9c12a04a5947/schema)
