Support any number of terms in dice expression