ReplaceList
ReplaceList[expr,rules] attempts to transform the entire expression expr by applying a rule or list of rules in all possible ways, and returns a list of the results obtained.
ReplaceList[expr,rules,n] gives a list of at most n results.
ReplaceList[rules] is an operator form of ReplaceList that can be applied to an expression.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.