Darn... I didn't know one could forget this much... if I have a string "2D6" and want to access the number before the "D" to use as an argument to a number of dice to roll, how do I do that properly?

More dice to the people!