change regexp's tag type