v1
latestOpenAPI 3.0.02026-07-1346146138.4 KBevaluators
Execute placeholder-regex evaluator
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
post/v2/evaluators/placeholder-regex/execute
Request body
Example request
{
"config": {
"case_sensitive": true,
"dot_include_nl": true,
"multi_line": true,
"should_match": true
},
"input": {
"placeholder_name": "name",
"placeholder_value": "Hello ${name}",
"text": "Hello John Doe"
}
}Response
OK
Example response
{
"is_valid_regex": true
}