Change the Dice class to use Regexp.