made regex visualisation work