Subset

Analyze if the second term is a subset of the first.

Request

curl -X POST "https://api.regexsolver.com/api/analyze/subset" \
    -H "Authorization: Bearer $REGEX_SOLVER_API_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"terms":[{"type":"regex","value":"de"},{"type":"regex","value":"(abc|de)"}]}'

Response

{
  "type": "boolean",
  "value": true
}