Intersection

Compute the intersection of the provided terms and return the resulting term.

The maximum number of terms is currently limited to 10.

Request

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

Response

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