Skip to main content
POST
/
v2
/
evaluators
/
execute
/
regex-validator
Execute regex-validator evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/regex-validator \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "text": "[email protected]"
  },
  "config": {
    "case_sensitive": true,
    "dot_include_nl": true,
    "multi_line": true,
    "regex": ".*",
    "should_match": true
  }
}
'
{
  "is_valid_regex": true
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Request body

input
object
required
config
object

Response

OK

is_valid_regex
boolean
Example:

true