improve Tags api and regex feature