made regex actually work on tag