extract tag infomation from comments