Shimano rear mechs compatible with:
All Shimano shifters (depending on number of gears of course)
SRAM Attack twist or trigger shifters (only 9-speed)
SRAM rear mechs compatible with:
SRAM X.0, X.9, X.7, X.5, X.4 and X.3 twist or triggers.
There may be older versions available, but this...