First version of regex diagram viewer