Analyze if the two provided terms are equivalent.
curl -X POST "https://api.regexsolver.com/api/analyze/equivalence" \
-H "Authorization: Bearer $REGEX_SOLVER_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"terms":[{"type":"regex","value":"(abc|de)"},{"type":"regex","value":"(abc|de)*"}]}'
{
"type": "boolean",
"value": false
}
Term.Regex term1 = Term.regex("(abc|de)");
Term.Fair term2 = Term.regex("(abc|de)*");
boolean result = term1.isEquivalentTo(term2);
System.out.println(result);
false
const term1 = Term.regex("(abc|de)");
const term2 = Term.regex("(abc|de)*");
term1.isEquivalentTo(term2).then(result => {
console.log(result);
});
false
term1 = Term.regex(r"(abc|de)")
term2 = Term.regex(r"(abc|de)*")
result = term1.is_equivalent_to(term2)
print(result)
False