Alternatives
Alternatives(p1, p2, ..., p_i)or
p1 | p2 | ... | p_iis a pattern that matches any of the patterns
p1, p2,...., p_i.
Examples
>> a+b+c+d/.(a|b)->tc + d + 2 tAlternatives(p1, p2, ..., p_i)or
p1 | p2 | ... | p_iis a pattern that matches any of the patterns
p1, p2,...., p_i.
>> a+b+c+d/.(a|b)->tc + d + 2 t