visualisation of regular expressions as finite automata