remove unnecessary regex from tag script