Skip to content
Home » Blog » Digital Marketing » SEO » How to Use Regex Filters in Google Search Console: A Step-by-Step Guide with 15+ Examples

How to Use Regex Filters in Google Search Console: A Step-by-Step Guide with 15+ Examples

  • by
A Google Search Console interface displaying regex query filters, highlighting keyword patterns for SEO analysis.

Want to uncover hidden search trends and supercharge your SEO? Google Search Console (GSC) lets you filter search queries with powerful regular expressions (Regex)—a game-changing way to analyze user behavior, find untapped keywords, and refine your strategy.

In this guide, I’ll walk you through:

  • How to use regex filters in GSC
  • Step-by-step instructions
  • 15+ practical examples for better query analysis
  • Tools to test regex patterns

Step 1: Access the Regex Filter in Google Search Console

  1. Log in to Google Search Console.
  2. Select your website property.
  3. Click on Performance → Choose either “Search results” or “Discover” tab.
  4. Click on + New → Select Query filter.
  5. Choose Custom (regex) from the dropdown.
  6. Enter your regex pattern and click Apply.

Step 2: Regex Basics for GSC

Common Regex Symbols

SymbolMeaningExample
.Matches any characterseo. → Matches “seos”, “seoa”, etc.
^Starts with^seo → Matches “seo tools”, “seo strategy”
$Ends withseo$ → Matches “best seo”, “local seo”
|OR operatorseo|digital → Matches “seo course” or “digital marketing”
.*Any character, zero or more timesseo.*guide → Matches “seo beginner guide” or “seo expert guide”
\dMatches digits202\d → Matches “2021”, “2022”
\bWord boundary\bseo\b → Matches exact word “seo”
(?i)Case insensitive(?i)seo → Matches “SEO”, “Seo”, “seo”

Step 3: 15+ Regex Examples for GSC

1. Find Queries Containing “SEO” or “Digital Marketing”

seo|digital marketing

Why this matters: Helps analyze keyword variations for SEO content.

2. Find Queries Starting with “How to”

^how to

SEO Impact: Identifies informational queries for blog content.

3. Find Queries Ending with “Guide”

guide$

Use Case: Find educational content opportunities.

4. Find Queries Related to “SEO Tips” or “SEO Guide”

seo (tips|guide)

Insight: Useful for categorizing SEO-related queries.

5. Find Queries with a Year (e.g., 2022, 2023, 2024)

202\d

Why this matters: Helps track seasonal trends and updates.

6. Find Queries That Include “Best”

\b(best)\b

SEO Tip: Identify comparison and listicle queries.

7. Find Queries About Prices (Containing Numbers and “$”)

\d+([.,]\d+)?\$

Benefit: Useful for e-commerce sites tracking product-related searches.

8. Find Queries Containing “vs” (Comparison Searches)

\bvs\b

Why this matters: Find competitive analysis search queries.

9. Find Queries Containing a Question (Who, What, When, Where, Why, How)

\b(who|what|when|where|why|how)\b

SEO Use: Identify content gaps in FAQ or blog sections.

10. Find Queries That Contain “Free” or “Cheap”

\b(free|cheap)\b

Insight: Target cost-sensitive audiences.

11. Find Queries with a Brand Name Variation (e.g., “Nike”, “Adidas”)

(?i)\b(nike|adidas)\b

Benefit: Tracks brand mentions in search.

12. Find Queries About Local SEO (Containing “near me” or “local”)

\b(near me|local)\b

Why this matters: Helps optimize for local search.

13. Find Queries Containing an Exact Phrase (e.g., “SEO strategy”)

\bseo strategy\b

SEO Use: Helps refine keyword targeting.

14. Find Queries with Spelling Variations (e.g., “e-commerce”, “ecommerce”)

\b(e-?commerce)\b

Benefit: Identifies different spelling variations in search.

15. Find Queries Containing “Best” and a Number (e.g., “Best 10 tools”)

best \d+

SEO Tip: Helps identify listicle-friendly keywords.

16. Find Queries Containing a Month Name

\b(january|february|march|april|may|june|july|august|september|october|november|december)\b

Insight: Useful for seasonal content planning.

17. Find Long-Tail Keywords (More Than 3 Words)

(\b\w+\b\s+){3,}

SEO Benefit: Helps uncover specific user intent.

18. Find Misspelled Keywords (e.g., “Recieve” Instead of “Receive”)

\brecieve\b

Why this matters: Useful for redirecting or optimizing content.

Step 4: How to Use Regex101 for Testing Regex

  1. Visit Regex101.
  2. Choose the ECMAScript (JavaScript) flavor (same as GSC uses).
  3. Enter your regex pattern in the “Regular Expression” field.
  4. Paste your sample queries in the “Test String” field.
  5. View matches highlighted in real-time.
  6. Read the explanation section to understand your regex.
  7. Adjust your pattern if necessary and test again.

Conclusion

Using regex in Google Search Console helps uncover hidden insights, refine keyword strategies, and optimize content effectively. With these 20+ regex examples, you can filter queries smartly and boost your SEO efforts.

🚀 Try these regex filters today and discover new SEO opportunities!

Author Profile

Anup Ain

Hey, my name is Anup Ain. I am a blogger and a digital marketing intern. I enjoy sharing my knowledge and experiences with others.