(feat) added id's to regex tree and html

not 100% correct, needs some tweaks