Introduction
Google Search Console is one of the most powerful tools for SEO professionals, but many users barely scratch the surface of its filtering capabilities. Regular expressions (regex) unlock advanced filtering options that can help you identify patterns, troubleshoot issues, and uncover opportunities that would otherwise remain hidden.
This guide provides the most useful regex filters organized by use case. Simply copy and paste these patterns into Search Console's filter field, select "Custom (regex)" from the dropdown, and let the data reveal itself.
How to Use Regex Filters in Search Console
- Navigate to the Performance report in Google Search Console
- Click the "+ NEW" button to add a filter
- Select "Page" or "Query" depending on what you want to filter
- Choose "Custom (regex)" from the filter type dropdown
- Paste the regex pattern from this guide
Technical SEO Filters
URLs with Parameters (Tracking, Filters, Pagination)
Use case: Find pages with URL parameters that might cause duplicate content issues or shouldn't be indexed.
Regex: \?.*=
What it matches: Any URL containing query parameters (anything after ? with an = sign).
Why it's useful: This catches tracking parameters (utm_, fbclid, gclid), pagination (?page=2), filters (?color=red), session IDs, and more. After running this filter, you can decide which parameters need canonicalization or exclusion.
Non-HTTPS Pages
Use case: Identify pages still being served over HTTP instead of HTTPS.
Regex: ^http://
What it matches: Any URL starting with http:// (not https://).
Why it's useful: Quick way to find security and ranking issues on mixed-protocol sites.
Content Type Filters
Specific Content Sections
Use case: Analyze performance of specific content types separately.
Regex: /blog/|/products?/|/category/
What it matches: URLs containing /blog/, /product/, /products/, or /category/.
Why it's useful: Quickly segment your site by content type. Modify this pattern to match your URL structure (e.g., add /news/|/guides/|/shop/).
Date-Based URLs
Use case: Find content organized by publication date.
Regex: /20\d{2}/\d{2}/
What it matches: URLs with year/month patterns like /2024/01/.
Why it's useful: Identify time-sensitive content that may need updating, or analyze how recent vs. older content performs.
Query Intent Filters
Question Queries (Featured Snippet Opportunities)
Use case: Find queries where users are asking questions—prime candidates for featured snippets.
Regex: ^(who|what|where|when|why|how|is|are|can|does|do)\s
What it matches: Queries starting with question words.
Why it's useful: These queries often trigger featured snippets. Filter for positions 1-10 to find quick wins where you rank well but don't own the snippet.
Comparison & Research Queries
Use case: Identify commercial intent queries where users are comparing options.
Regex: best|vs|versus|compare|top \d+|review
What it matches: Queries like "best laptops," "X vs Y," "top 10 tools," "product reviews."
Why it's useful: High commercial intent queries where comprehensive content performs well. Great for content gap analysis.
Commercial Intent Filters
Transactional Queries
Use case: Track high-intent queries from users ready to take action.
Regex: buy|purchase|price|cost|cheap|deal|discount|coupon|for sale
What it matches: Queries with strong purchase or pricing intent.
Why it's useful: These queries convert at higher rates. Use this to prioritize optimization efforts on your most valuable traffic.
Advanced Pattern Filters
Long-tail Queries (5+ Words)
Use case: Identify detailed, specific searches that often have higher conversion rates and less competition.
Regex: ^(\S+\s+){4,}\S+
What it matches: Queries containing 5 or more words.
Why it's useful: Long-tail queries are goldmines for content ideas and often convert better than broad terms.
Exclude Homepage
Use case: Filter out homepage traffic to focus on internal pages.
Regex: ^https?://[^/]+/?$
What it matches: Only the homepage URL.
Important: Use this pattern with the "Does not match regex" option in Search Console to exclude the homepage from your analysis.
Subdomain Analysis
Use case: Isolate traffic to specific subdomains.
Regex: ^https?://(blog|shop|support)\.
What it matches: URLs from blog., shop., or support. subdomains.
Why it's useful: Analyze subdomain performance separately. Modify the pattern to match your subdomains.
Pro Tips for Using Regex in Search Console
-
Combine filters: You can add multiple regex filters to narrow down your analysis. For example, combine blog post filter + question queries to find blog content that ranks for questions.
-
Test your patterns: Use a regex testing tool like regex101.com to validate your patterns before using them in Search Console.
-
Save common filters: Keep a document with your frequently-used filters for quick access.
-
Case sensitivity: Regex in Search Console is case-insensitive by default, so you don't need to worry about capitalization.
-
Export your data: After filtering, export the results to analyze trends over time in spreadsheets.
Common Workflows
Finding Cannibalization Issues
Use content type filters to group similar pages, then look for multiple URLs ranking for the same query. This indicates potential keyword cannibalization that needs consolidation.
Optimizing for Featured Snippets
Use the question query filter + position filter (1-10) to find queries where you rank well but don't own the featured snippet. Add proper question-answer formatting to capture these.
Technical SEO Audit
Start with the parameter filter to identify indexation issues, then check for HTTP pages. Export the results and prioritize fixes based on traffic volume.
Content Gap Analysis
Combine the comparison query filter with long-tail queries to discover specific topics your audience searches for that you haven't covered yet. These often have lower competition.
High-Value Traffic Analysis
Layer the transactional query filter with specific content sections to see which parts of your site attract buying intent. Double down on what's working.
Conclusion
Regular expressions transform Google Search Console from a basic reporting tool into a powerful analytics platform. These essential filters provide the foundation for deeper insights into your site's search performance without overwhelming you with every possible pattern.
The key is understanding what questions you need to answer about your traffic, then using regex to slice the data accordingly. Start with these core patterns, combine them strategically, and customize them to match your site's unique URL structure and business goals.
Remember: the best regex filter is the one that reveals actionable insights you can use immediately. Master these patterns, then build on them as your needs evolve.