Exposed input validation against internal regular expression

I added a new function to exports that tests the roll string against the matching regex. The `roll` function will also take advantage of this instead of throwing a `TypeError: Cannot read property '1' of null` when encountering input it didn't expect.