update tag_pattern