Subtraction / Difference

Compute the first term minus the second and return the resulting term.

Request

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

Response

{
  "type": "regex",
  "value": "abc"
}