Google Search Console Regex Filters: 12 Practical Patterns (2026)
Google Search Console regex filters help you group related search queries and page URLs without opening dozens of separate filters. If you manage SEO for a business, ecommerce store or content site, one well-built regular expression can reveal question searches, local modifiers, service intent, platform demand and groups of URLs in a single report.
Search Console uses RE2 syntax, not every feature found in JavaScript or PCRE regular expressions. This guide explains the rules that matter, then gives you 12 practical patterns you can adapt for a real SEO audit in 2026.
What Google Search Console regex filters are useful for
The Performance report normally lists individual queries or pages. A regex filter lets you combine several variations into one view. For example, you can group searches containing “price”, “pricing”, “cost” or “packages” and compare their clicks, impressions, CTR and average position.
Use regex when the values share a pattern but not one identical phrase. It is especially useful for:
- Grouping question based searches before planning content.
- Separating local, product, service or brand related queries.
- Reviewing a group of landing pages or URL folders.
- Finding indexed URLs with parameters or unwanted file extensions.
- Comparing one query group with another during an SEO review.
It does not change rankings or tell Google which pages to index. It only changes the data shown in the report.
How to add Google Search Console regex filters
- Open the property in Google Search Console.
- Open Performance, then Search results.
- Choose a useful date range and select the Queries or Pages tab.
- Click + Add filter and choose Queries or Pages.
- Select Custom (regex), paste your pattern and choose Matches regex.
- Choose Doesn't match regex when you want to exclude the pattern, then apply the filter.
You can combine the regex with other report filters, such as country, device and date. That lets you answer a more useful question, such as how mobile searches containing “price” performed in Pakistan over the last three months.
RE2 rules to know before using a pattern
Search Console uses the RE2 regular expression engine. Its default matching is case insensitive and partial. That means the pattern shopify can match “best shopify developer” without matching the entire query from beginning to end.
|means OR. Use parentheses to group alternatives, such as(price|pricing|cost).^means the start of the value.$means the end.\bmarks a word boundary, useful for avoiding some accidental partial word matches.\dmatches a digit.\smatches whitespace..*matches any sequence of characters. In Search Console it is often unnecessary because matching is already partial.
Do not paste a complex pattern from a JavaScript or PCRE tutorial without checking it. RE2 does not support lookahead, lookbehind or backreferences. If a pattern uses constructs such as (?=...), (?!...) or \1, rewrite it with ordinary groups and alternatives.
12 practical Google Search Console regex filters
1. Group branded searches
(hamza khalil|hamzakhalil|hamza khalil pk)
Apply this to Queries to collect the name variations people use when looking for a person or business. Replace these examples with your own brand name, common spacing variations and known misspellings. Avoid short words that could appear in unrelated searches.
If Search Console offers its built in branded and non branded filter for your property, use that when you want Google's classification. The filter is not available for every site and some classifications can be incorrect. A custom regex is useful when you need a transparent list of specific brand terms.
2. View searches that do not contain your brand terms
(hamza khalil|hamzakhalil|hamza khalil pk)
Keep the same pattern, but switch the filter to Doesn't match regex. This gives you a practical non brand view based on the terms you listed. It is not a complete substitute for Google's branded filter because you may not know every product name, abbreviation or misspelling people associate with your brand.
3. Find question based searches
\b(what|how|why|when|where|who|can|does|is|are|should|which)\b
Apply this to Queries to find searches phrased as questions. Review the actual rows before writing an FAQ. A question may need a short answer on an existing page rather than a separate article.
4. Group pricing and buying intent
\b(price|pricing|cost|quote|quotes|package|packages|hire)\b
This pattern finds searches that may indicate a user is comparing providers or preparing to buy. Check the pages receiving impressions. If informational blog posts rank for commercial searches, consider whether a relevant service or product page would answer the intent more directly.
5. Find Pakistan and city modifiers
\b(pakistan|lahore|karachi|islamabad|rawalpindi|faisalabad|multan|peshawar)\b
Use this on Queries to group location modified searches. You can also filter the report by country, but the two filters answer different questions. Country shows where the search happened. This regex finds place names typed into the search query.
6. Compare searches for major website platforms
\b(wordpress|shopify|woocommerce)\b
This is useful for agencies and developers who provide services across several platforms. Review impressions and CTR by query, then separate development, maintenance, migration and SEO intent if the data supports those groups.
7. Isolate your blog URLs
^https://hamzakhalil\.pk/blog/
Apply this to Pages to view URLs in the blog folder. The start anchor prevents a different URL containing the same text later in its address from being included. Replace the domain and folder with your own site structure.
8. Review one exact service page
^https://hamzakhalil\.pk/services/?$
This matches the service page with or without a trailing slash. It is useful when you want to inspect one landing page rather than every URL under a folder. Change the path to the exact page you need to review.
9. Group a set of important landing page folders
^https://example\.com/(services|solutions|locations)/
Replace the example domain with your own. This pattern groups URLs that begin with one of three folders. It can help compare service, solution and location page groups without adding three separate filters.
10. Find URLs that contain query parameters
\?.+
Apply this to Pages to look for result URLs containing a question mark and at least one character after it. Review these URLs carefully. Parameters can be valid tracking or filtering values, and Search Console usually attributes performance to Google's selected canonical URL. Do not redirect or block every parameter URL just because it appears in this report.
11. Check image file URLs
\.(jpg|jpeg|png|webp|svg)$
Use this when reviewing page results for image search or checking whether image file URLs appear in a report where you did not expect them. The end anchor means the file extension must appear at the end of the URL. If your site uses other image formats, add them to the group.
12. Match a specific URL slug exactly
^https://example\.com/blog/seo-audit/?$
This matches one page path with an optional trailing slash. It is more precise than searching for the words “seo audit”, which could match many unrelated URLs. Use an exact page pattern when you want to compare a page's query data with its own performance over time.
How to turn regex results into SEO actions
A filtered table is only useful when it leads to a decision. Start with a clear question, choose the smallest pattern that answers it, and review the query or page rows before changing content.
- Sort by impressions. Find patterns with demand but weak clicks. Check whether the title and description make the page's value clear.
- Check average position. A page around the lower first page may need better intent alignment and internal links. A page far below the first page may need broader work.
- Compare CTR. Compare similar queries at similar positions. Do not assume a low CTR always means the title is poor because search features and query intent also affect clicks.
- Open the Pages tab. Confirm which URL receives the impressions. If several pages appear for the same intent, investigate possible overlap before creating another page.
- Save the pattern and date range. Reuse the same filter in the next review so the comparison stays consistent.
For a wider keyword workflow, use the Google Trends keyword research guide to check demand direction, and the Keyword Grouper to organise related terms by intent. If you are still getting familiar with the report, read the Google Search Console guide in Urdu.
Common mistakes and reporting limits
- Assuming filtered totals will add up. Query filters can exclude anonymized searches, and Search Console also limits the rows shown in tables. Filtered totals may not equal the unfiltered total.
- Forgetting partial matching. A short pattern may match a phrase anywhere in a query or URL. Add
^or$when you need a boundary. - Using a broad brand word. A brand name that is also a common word can pull in irrelevant searches. Add a second term or use Google's built in branded filter when it is available.
- Copying unsupported syntax. Lookarounds and backreferences are common in other regex engines but are not supported by RE2.
- Making site changes from one filtered view. Check the destination page, canonical URL and business value before removing, redirecting or rewriting anything.
When you need the most complete query dataset, consider Search Console bulk data export rather than relying only on the visible table. For routine SEO checks, however, a few well named regex patterns can make the Performance report much faster to work with.
Official sources and further reading
Frequently asked questions
Does Google Search Console use JavaScript regex?
No. Search Console uses RE2 syntax. Basic groups, alternatives, character classes, anchors and repetition operators work, but lookahead, lookbehind and backreferences do not.
Are Search Console regex filters case sensitive?
No. Matching is case insensitive by default. Google documents the (?-i) flag for case sensitive matching when you need it.
Why do filtered query totals differ from the report total?
Some queries are anonymized for privacy and are omitted when a query filter is applied. Search Console also truncates the rows available in tables, so a filtered table is not a complete accounting of every search.
Want help with your Search Console audit?
Send me your website and target market. I can help group the search data, identify weak pages and prepare a clear action plan.