Intro

Track year-modified searches in GSC so you can isolate freshness-led demand tied to current-year content and updates.

Use this regex to capture current-year queries in Search Console when users explicitly search for fresh lists, guides, or comparisons.

The Regex

\b(2024|2025|2026|2027)\b

How This Regex Works (Explained Simply)

()

Parentheses group terms together so GSC treats them as one unit. That is what lets one regex cover several query variants in a single filter.

|

The pipe means OR. GSC will match any term on either side of the pipe, which is useful for variants, modifiers, or alternative phrases.

\b

Backslash-b marks a word boundary. It helps stop short terms from matching inside longer words in GSC queries.

GSC regex is case-insensitive by default, so capital letters do not need separate variants. GSC also uses partial matching by default, so the regex can match part of a longer query unless you anchor it with ^ or $.

What This Regex Does

  • Matches the listed standalone years.
  • Surfaces freshness-led demand where recency matters.
  • Helps audit whether updated content captures year-modified searches.

What it does not match

  • best seo tools 2023 - 2023 is not included in the current pattern.
  • best seo tools - No year modifier appears.

Edge Cases

  • The regex only matches the years you explicitly include, so refresh it as part of your content maintenance process.
  • Because of partial matching in GSC, the year can appear anywhere in the query.

Example Matches Table

Query Match Why
best seo tools 2026 Match Contains one of the listed years.
casino bonus comparison 2025 Match The query includes a listed year modifier.
best seo tools 2023 No 2023 is not included in the current pattern.
best seo tools No No year modifier appears.

How to Use This in Google Search Console

  1. Open Performance and go to Search results.
  2. Click Add filter and choose Query.
  3. Select Custom (regex).
  4. Paste the regex and click Apply.

When to Use This

  • Measure recency-led search demand in one segment.
  • Audit whether refreshed pages win current-year queries.
  • Compare year-modified CTR against evergreen queries.

Pro Tips

  • Update the year list regularly instead of leaving stale years in the core regex.
  • Pair this with page filters to see which updated URLs attract recency demand.
  • Compare current-year demand with evergreen pages to find refresh priorities.
  • Use a variation to add the next year before search demand ramps up.

Variations

Add the next year

\b(2024|2025|2026|2027|2028)\b

Extends the pattern when you want to track the next year's demand early.

Related Regex Recipes

CTA

Regex is only the first step. The real bottleneck is turning manual filters into a repeatable workflow your team actually uses. Spicy Metrics helps you move from ad hoc filtering to operational SEO workflows.

Move beyond manual regex work