Details
Compute the details of the provided term.
The computed details are:
- Cardinality: the number of possible values.
- Length: the minimum and maximum length of possible values.
- Empty: true if is an empty set (does not contain any value), false otherwise.
- Total: true if is a total set (contains all values), false otherwise.
Request
curl -X POST "https://api.regexsolver.com/api/analyze/details" \
-H "Authorization: Bearer $REGEX_SOLVER_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"regex","value":"(abc|de)"}'
Response
{
"type": "details",
"cardinality": {
"type": "Integer",
"value": 2
},
"length": [
2,
3
],
"empty": false,
"total": false
}