Support more comprehensive tag pattern matching