Fixes minor issues with regexToRailroad code

If 0 or 1 are specified as the number for a repeating block, either displays nothing or just one block instead of a repeating block. Also displays ranges now i.e. [a-fA-F]