Skip to main content
POST
/
v2
/
evaluators
/
execute
/
placeholder-regex
Execute placeholder-regex evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/placeholder-regex \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "placeholder_value": "[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Z|a-z]{2,}",
    "text": "[email protected]"
  },
  "config": {
    "case_sensitive": true,
    "dot_include_nl": true,
    "multi_line": true,
    "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