Say I have a list of values, this list can be of any length:
"100","200","300","400","500", ...
And I have a template string that has a few tokens that need to be replaced:
"@token1@-@token2@-@[email protected]@tokenN@"
Using the list of values, how can I generate every possible combination of the values in the template?
Values can be used more than once, so a result could be "100-100-100". Extra points for a method that takes into account an variable amount of tokens!