Bals28mjk, this problem has absolutely nothing to do with regular expressions, and you described a method for transforming the text into a two dimensional array, which doesn't answer his question. It's a good (and trivial) first step, but the job's hardly "finito" until some hairy, computer sciency statistical analysis functions are coded. Mudoeb, are you able to "train" your program with ...