Union

Compute the union 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/union" \
    -H "Authorization: Bearer $REGEX_SOLVER_API_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"terms":[{"type":"regex","value":"abc"},{"type":"regex","value":"de"},{"type":"regex","value":"fghi"}]}'

Response

{
  "type": "regex",
  "value": "(abc|de|fghi)"
}