Use REGEXP to match annotations on different patterns.