|
WMA link
Alternatives
a+b+c+d/.(a|b)->t
Alternatives can also be used for string expressions:
StringReplace["0123 3210", "1" | "2" -> "X"]