fix test
adding method for convert tag to regex