Beginning of a number-based 'regex-to-transition matrix' application