More careful matching of tag name regex