v1
latestOpenAPI 3.0.02026-07-1346146138.4 KBevaluators
Execute regex-validator evaluator
Validate text against a regex pattern
Request Body:
- input.text (string, required): The text to validate against a regex pattern
- config.regex (string, optional): The regex pattern to match against
- 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/regex-validator/execute
Request body
Example request
{
"config": {
"case_sensitive": true,
"dot_include_nl": true,
"multi_line": true,
"regex": ".*",
"should_match": true
},
"input": {
"text": "user@example.com"
}
}Response
OK
Example response
{
"is_valid_regex": true
}