Noor Building 3, Mankhool, Dubai +971 56 766 0073 hello@topseoagency.ae
Top SEO Agency UAE

Regex for Google Search Console: the complete guide with copy-paste patterns

By Talha, Technical SEO Lead. Published . Updated . 20 min read.

Regular expressions turn the Performance report into a precise analysis tool. This guide shows exactly how to apply them, the RE2 rules that make or break a pattern, and 85 tested patterns for queries and URLs, with screenshots and a short video.

Watch the 30-second walkthrough

How to apply a regex filter in the Search Console Performance report, then exclude branded queries. Illustration based on the Performance report layout.

The video covers the full flow in four clicks. The rest of this guide explains the rules behind it and gives you 85 patterns, each one tested against Google's RE2 engine before publishing, so you can paste them straight into Search Console.

What is regex in Google Search Console?

A regular expression (regex) is a short text pattern that describes a set of strings. In Google Search Console, regex lets you filter the Performance report by patterns instead of single words: every question query, every misspelling of your brand, every URL in a folder, or everything except those things.

Google added regex filters to the Performance report in April 2021. In its launch post, Google used the example of a company called "cats and dogs" that people also search as "cats & dogs" or "c&d": one filter, cats and dogs|cats & dogs|c&d, captures every branded query at once. In June 2021 Google added the negative option, Doesn't match regex, so you can exclude a pattern as easily as include it.

Regex works on two dimensions in the Search results Performance report:

  • Query: the search terms people typed, such as best seo company in dubai.
  • Page: the full URL that appeared in Google, such as https://example.ae/blog/local-seo.

Country, Device, Search appearance and Date filters do not accept regex. For those you use the normal dropdowns, and you can combine them with a regex Query or Page filter.

How to use a regex filter in Search Console, step by step

  1. Open the Performance report. In Search Console, choose your property, then go to Performance > Search results. Set the date range you want to analyse (up to 16 months of data is available).
  2. Click + New in the filter bar. It sits next to the Search type and Date chips at the top of the report.
Search Console Performance report with the + New filter button highlighted
Step 1: open Performance > Search results and click + New. Illustration.
  1. Choose Query or Page. Query filters search terms. Page filters URLs.
New filter menu in Search Console with Query highlighted
Step 2: pick Query for search terms or Page for URLs. Illustration.
  1. Select Custom (regex) from the dropdown. The default options are "containing", "not containing" and "exact". Custom (regex) is the fourth option.
Filter dialog dropdown showing the Custom (regex) option
Step 3: open the first dropdown and choose Custom (regex). Illustration.
  1. Choose Matches regex or Doesn't match regex, then type your pattern. A second dropdown appears once Custom (regex) is selected.
  2. Click Apply. The filter appears as a chip in the filter bar. Click the chip to edit it, or the cross to remove it.
Search Console filter dialog with Custom (regex), Matches regex and a question-word pattern entered
Step 4: keep Matches regex, enter the pattern and click Apply. Illustration.
Performance report filtered to question queries only using regex
Result: the report now shows only queries that start with a question word. Illustration with example data.

Tip: you can stack several filters. Two Query filters work as AND (both must be true), while the pipe character | inside one pattern works as OR.

The RE2 rules that decide whether your regex works

Search Console uses RE2, the regular expression library Google built for speed and safety. RE2 is also used by Google Analytics 4, Looker Studio and the REGEXMATCH function in Google Sheets, so patterns you write here carry over. It differs from the regex in Python, JavaScript or PHP in a few ways that catch people out.

Partial match by default

A pattern matches anywhere in the string. seo matches local seo dubai. Use ^ to anchor the start and $ to anchor the end.

Set case behaviour explicitly

Google's documentation has described the default case handling differently over the years. Query data is stored in lowercase, so case mostly matters for Page URLs. Start with (?i) for case-insensitive or (?-i) for case-sensitive and you get the same result whatever the default is.

No lookarounds or backreferences

RE2 rejects (?=…), (?!…), (?<=…), (?<!…) and \1. Use a second filter or the Doesn't match regex option instead. We tested this: all five fail in RE2.

Broken patterns fail silently

An invalid regex does not show an error. The report simply returns no rows, which looks exactly like a valid pattern with no matches. If a filter comes back empty, check the syntax first.

Escape special characters

These characters have special meaning: . * + ? ^ $ ( ) [ ] { } | \. To match them literally, add a backslash: example\.ae, \?, \+.

Mind the length limit

Each filter accepts roughly 4,096 characters. Long brand-misspelling lists can hit it. Group shared parts with parentheses, for example acme(seo|digital|agency), to keep patterns short.

Regex cheat sheet for Search Console

These are the RE2 building blocks you will use in nearly every Search Console filter.

SymbolMeaningExampleMatches
|OR: either sidedubai|sharjahseo dubai, seo sharjah
^Start of the string^howhow to rank (not "seo how to")
$End of the stringnear me$dentist near me
.Any single characters.oseo, s3o
*Zero or more of the previous itemseo.*dubaiseo agency in dubai
+One or more of the previous item\d+7, 2026
?Optional: zero or onecolou?rcolor, colour
( )Group items togetherseo (agency|company)seo agency, seo company
[ ]Any one character from a set[0-9]any digit
[^ ]Any character not in the set[^/]+one URL segment
{n,m}Between n and m repetitions\d{4,}10452
\dAny digittop \d+top 10
\s / \SWhitespace / non-whitespace^\S+$one-word queries
\wLetter, digit or underscore (ASCII)\w+seo_2026
\bWord boundary (ASCII words)\bseo\bseo, but not seoul
\p{Arabic}Any character in a Unicode script\p{Arabic}سيو دبي
(?i)Case-insensitive from here on(?i)acmeAcme, ACME
\Escape a special character\.pdf$/price-list.pdf

Note that \b and \w only understand ASCII letters in RE2. For Arabic and other scripts, match the words directly or use Unicode classes such as \p{Arabic}.

Anatomy of a Search Console regex

Here is one pattern broken into its parts. It finds question queries that mention Dubai anywhere after the question word:

It matches how much does seo cost in dubai and which seo company is best in dubai, but not seo dubai how to.

85 copy-paste regex patterns for Search Console

Every pattern below was compiled and tested with Google's RE2 library against a matching and a non-matching example before publishing. Click Copy, paste it into a Custom (regex) filter and replace the example brand (acme) or domain (example.ae) with your own.

Branded and non-branded queries

Group every spelling of your brand so you can separate demand you already own from demand you still have to win. Run the same pattern with Doesn't match regex to see non-branded traffic only.

RegexWhat it finds
acmeAny query containing your brand nameMatches: acme seo dubaiQuery · Matches regex
acme|akme|acmee|ac meBrand plus common misspellings and spacingMatches: akme reviewsQuery · Matches regex
(?i)top ?seo ?agencyBrand written with or without spaces, any caseMatches: topseoagencyQuery · Matches regex
acme|akme|acmeeNon-branded traffic only (use Doesn't match regex)Keeps: seo agency dubaiQuery · Doesn't match regex
^acme$Only the bare brand search, nothing elseMatches: acmeQuery · Matches regex
acme.*(review|reviews|complaint|scam|legit)Reputation searches about your brandMatches: acme reviews 2026Query · Matches regex
acme.*(login|sign in|account|portal)Existing customers trying to log inMatches: acme loginQuery · Matches regex
(semrush|ahrefs|moz)Competitor brand names your pages appear forMatches: ahrefs alternativeQuery · Matches regex

Question queries (for content, AEO and AI Overviews)

Question queries tell you exactly what to answer on the page. They are also the queries most likely to trigger featured snippets, People Also Ask boxes and AI Overviews.

RegexWhat it finds
^(who|what|when|where|why|how|which|whose|whom)\bQueries that start with a question wordMatches: how to rank on google mapsQuery · Matches regex
\b(who|what|when|where|why|how|which)\bQuestion words anywhere in the queryMatches: seo cost how muchQuery · Matches regex
^(is|are|can|does|do|should|will|could|would|did|has|have)\bYes or no questionsMatches: is seo worth itQuery · Matches regex
^(how to|how do i|how can i|how much|how long|how many)\bHow-to, cost and duration questionsMatches: how much does seo costQuery · Matches regex
\?$Queries typed with a question markMatches: what is seo?Query · Matches regex
\b(vs|versus|or|compared to|difference between)\bComparison questionsMatches: seo vs google adsQuery · Matches regex
^(what is|what are|what does|meaning of|define|definition)\bDefinition queries for glossary contentMatches: what is a canonical tagQuery · Matches regex
(ماذا|كيف|لماذا|متى|أين|هل|ما هو|ما هي|كم)Arabic question words (UAE and GCC sites)Matches: كيف اظهر في خرائط جوجلQuery · Matches regex

Search intent

Search intent decides which page should rank. These patterns sort queries into commercial, transactional, informational, local and navigational buckets.

RegexWhat it finds
\b(best|top|leading|recommended|trusted|rated)\bCommercial investigation: shoppers comparing optionsMatches: best seo company in dubaiQuery · Matches regex
\b(price|prices|pricing|cost|costs|fee|fees|rate|rates|package|packages|quote)\bPrice-sensitive queriesMatches: seo packages dubaiQuery · Matches regex
\b(cheap|affordable|budget|low cost|discount|deal|offer)\bBudget buyersMatches: affordable seo servicesQuery · Matches regex
\b(buy|order|hire|book|get|subscribe|sign up|quote)\bTransactional: ready to actMatches: hire seo expertQuery · Matches regex
\b(agency|company|companies|firm|services|service|consultant|expert|specialist)\bProvider searches for service businessesMatches: seo consultant abu dhabiQuery · Matches regex
\b(guide|tutorial|tips|ideas|examples|checklist|template|learn|course)\bInformational: learning and researchMatches: local seo checklistQuery · Matches regex
\b(free|diy|yourself|tool|tools|generator|checker)\bFree and DIY intent (often low conversion)Matches: free seo checkerQuery · Matches regex
\b(near me|nearby|near by|close to me|around me|open now)\b"Near me" and local intentMatches: seo agency near meQuery · Matches regex
\b(jobs?|careers?|vacancy|vacancies|hiring|salary|internship|cv)\bJob seekers, usually excluded from SEO reportsMatches: seo jobs dubaiQuery · Matches regex
\b(login|log in|sign in|contact|phone|number|address|whatsapp|email)\bNavigational and contact searchesMatches: acme phone numberQuery · Matches regex

Local SEO and locations (UAE examples)

Location modifiers show where demand comes from and which areas need their own landing page. Swap the place names for your own market.

RegexWhat it finds
\b(dubai|abu dhabi|sharjah|ajman|ras al khaimah|rak|fujairah|umm al quwain|uae|emirates)\bAny UAE emirate or the countryMatches: seo company sharjahQuery · Matches regex
\b(dubai|abu dhabi|sharjah|ajman|ras al khaimah|fujairah|umm al quwain|uae)\bQueries with no location at all (use Doesn't match regex)Keeps: seo companyQuery · Doesn't match regex
\b(deira|bur dubai|mankhool|karama|business bay|downtown|marina|jlt|jumeirah|al barsha|al quoz)\bDubai districts and neighbourhoodsMatches: seo company in deiraQuery · Matches regex
\b(abu ?dhabi|abudhabi|auh)\bAbu Dhabi with common spelling variantsMatches: seo abudhabiQuery · Matches regex
(دبي|أبوظبي|ابوظبي|الشارقة|عجمان|الفجيرة|رأس الخيمة|الإمارات|الامارات)Emirates written in ArabicMatches: شركة سيو في دبيQuery · Matches regex
\b(in|near|around)\s+\w+$Queries that end with "in [place]" or "near [place]"Matches: dentist in jumeirahQuery · Matches regex

Query length and long-tail keywords

Word count is a reliable proxy for specificity. Long-tail and conversational queries are where AI search and voice search show up in your data.

RegexWhat it finds
^\S+$Single-word queriesMatches: seoQuery · Matches regex
^\S+\s\S+$Exactly two wordsMatches: seo dubaiQuery · Matches regex
^(\S+\s){2,3}\S+$Three to four wordsMatches: best seo agency dubaiQuery · Matches regex
^(\S+\s){4,}\S+$Long-tail: five words or moreMatches: how much does seo cost in dubaiQuery · Matches regex
^(\S+\s){9,}\S+$Conversational queries of ten words or more (AI-style prompts)Matches: what is the best way to rank my dental clinic on google maps in dubaiQuery · Matches regex
^.{60,}$Queries of 60 characters or moreMatches: which seo company in dubai is best for a small ecommerce storeQuery · Matches regex
^.{1,10}$Very short queries of 10 characters or fewerMatches: seo uaeQuery · Matches regex

Language, numbers and special patterns

Useful when you work across languages or want to spot years, prices and model numbers in your queries.

RegexWhat it finds
\p{Arabic}Any query containing Arabic scriptMatches: سيو دبيQuery · Matches regex
^[\p{Arabic}\s]+$Queries written entirely in ArabicMatches: شركة سيوQuery · Matches regex
[^\x00-\x7F]Any non-ASCII character (other scripts, accents, emoji)Matches: café seoQuery · Matches regex
\b20(2[4-9])\bQueries that mention a year from 2024 to 2029Matches: seo trends 2026Query · Matches regex
\dQueries containing any numberMatches: top 10 seo agenciesQuery · Matches regex
\b(aed|dhs|dirham|usd|\$)\b|\d+\s?(aed|dhs)Currency and price mentionsMatches: seo package 3000 aedQuery · Matches regex

AI search, GEO and AEO opportunities

Generative Engine Optimisation (GEO) and Answer Engine Optimisation (AEO) start with the queries that look like prompts. These are the ones to answer in clear, quotable paragraphs.

RegexWhat it finds
^(how|what|which|why|can|should|is|are|do|does)\b.{40,}Long natural-language questionsMatches: what should i look for when hiring an seo agency in dubaiQuery · Matches regex
\b(best way|step by step|explain|pros and cons|worth it|for beginners|alternatives?)\bPrompt-style phrasingMatches: is seo worth it for small businessQuery · Matches regex
\b(chatgpt|gemini|copilot|perplexity|claude|ai overview|ai mode|llm)\bQueries about AI assistants and AI searchMatches: how to rank in chatgptQuery · Matches regex
\b(recommend|suggest|which is better|should i choose|top \d+)\bRecommendation queries that AI answers often citeMatches: which is better seo or ppcQuery · Matches regex
my location is|\?\.\s|^(can you|help me|i need|i want|find me|i'm looking for)\bPrompt-style queries passed on by AI assistantsMatches: can you help me find an seo agency?. my location is united arab emi…Query · Matches regex

Page URL patterns: sections and templates

Page filters match the full URL, including https:// and the domain. Escape the dots in the domain with a backslash.

RegexWhat it finds
/blog/Every page inside the /blog/ folderMatches: https://example.ae/blog/local-seo-guidePage · Matches regex
^https://example\.ae/blog/[^/]+/?$Blog posts only, not the blog home or sub-foldersMatches: https://example.ae/blog/seo-tipsPage · Matches regex
/(services|solutions)/Service pages across two folder namesMatches: https://example.ae/services/seoPage · Matches regex
/(product|products|p)/Product page templatesMatches: https://shop.ae/products/glovesPage · Matches regex
/(category|collections|c)/Category and collection templatesMatches: https://shop.ae/collections/glovesPage · Matches regex
/(about|contact|pricing)/?$A short list of specific pagesMatches: https://example.ae/pricingPage · Matches regex
^https://example\.ae/?$The homepage only, with or without trailing slashMatches: https://example.ae/Page · Matches regex
^https://example\.ae/about/?$One exact URL, with or without trailing slashMatches: https://example.ae/aboutPage · Matches regex
/blog/Everything except the blog (use Doesn't match regex)Keeps: https://example.ae/services/seoPage · Doesn't match regex
(seo|search-engine)URLs containing a topic keywordMatches: https://example.ae/local-seo-dubaiPage · Matches regex
-(dubai|abu-dhabi|sharjah|ajman|fujairah)Location landing pages by URL slugMatches: https://example.ae/seo-sharjahPage · Matches regex

Page URL patterns: technical SEO checks

These filters surface URLs that should usually not be earning impressions: parameters, duplicates, wrong protocol, staging hosts and odd file types.

RegexWhat it finds
\?Any URL with a query stringMatches: https://example.ae/shop?sort=pricePage · Matches regex
[?&](utm_|gclid|fbclid|msclkid|ref=)Tracking parameters that leaked into the indexMatches: https://example.ae/?utm_source=fbPage · Matches regex
[?&](sort|order|filter|color|size|price)=Faceted navigation and sorting parametersMatches: https://shop.ae/c/gloves?size=12Page · Matches regex
[?&]page=\d+|/page/\d+Paginated URLsMatches: https://example.ae/blog/page/3Page · Matches regex
#URLs with a fragment, including #:~:text= from featured snippetsMatches: https://example.ae/faq#:~:text=seo%20costPage · Matches regex
#:~:text=Scroll-to-text links Google adds for featured snippets and AI answersMatches: https://example.ae/guide#:~:text=howPage · Matches regex
^http://Pages still indexed on HTTP instead of HTTPSMatches: http://example.ae/aboutPage · Matches regex
^https://www\.The www host (use Doesn't match regex to see non-www)Matches: https://www.example.ae/Page · Matches regex
^https://(staging|dev|test|beta)\.Staging and test subdomains that should not be indexedMatches: https://staging.example.ae/Page · Matches regex
\.(pdf|docx?|xlsx?|pptx?)$Documents ranking in searchMatches: https://example.ae/files/price-list.pdfPage · Matches regex
\.(jpe?g|png|webp|gif|svg)$Image URLs appearing in the Page reportMatches: https://example.ae/img/logo.pngPage · Matches regex
/amp/?$|[?&]amp(=|$)Legacy AMP URLsMatches: https://example.ae/blog/post/amp/Page · Matches regex
/(tag|author|feed|wp-json|wp-admin|attachment)/WordPress archive and system URLsMatches: https://example.ae/tag/seo/Page · Matches regex
\.html?$Pages ending in .html or .htmMatches: https://example.ae/about.htmlPage · Matches regex
[^/]$URLs without a trailing slash (find inconsistent formats)Matches: https://example.ae/aboutPage · Matches regex
(?-i)[A-Z]URLs that contain uppercase lettersMatches: https://example.ae/About-UsPage · Matches regex
//[^/]+/.*//Double slashes in the pathMatches: https://example.ae/blog//postPage · Matches regex
/\d{4,}Numeric IDs of four digits or more in the pathMatches: https://shop.ae/p/10452Page · Matches regex
/(ar|en|fr)(/|$)Language folders for hreflang checksMatches: https://example.ae/ar/servicesPage · Matches regex

URL depth and length

Depth and length help you find thin, orphaned or over-nested sections at a glance.

RegexWhat it finds
^https://[^/]+/[^/]+/?$Top-level pages (one folder deep)Matches: https://example.ae/servicesPage · Matches regex
^https://[^/]+/[^/]+/[^/]+/?$Pages exactly two levels deepMatches: https://example.ae/services/seoPage · Matches regex
^https://[^/]+/([^/]+/){3,}Pages four or more levels deepMatches: https://example.ae/a/b/c/dPage · Matches regex
^.{100,}$URLs longer than 100 charactersMatches: https://example.ae/blog/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa…Page · Matches regex
/[^/]*-[^/]*-[^/]*-[^/]*-[^/]*-[^/]*-[^/]*/?$Slugs with seven or more wordsMatches: https://example.ae/blog/how-to-rank-your-clinic-on-google-mapsPage · Matches regex

Exclude queries and pages with Doesn't match regex

Because RE2 has no negative lookahead, exclusion happens in the filter itself. Choose Custom (regex), then switch the second dropdown to Doesn't match regex. The most common use is removing branded searches so you can judge SEO on the demand you still have to win.

Doesn't match regex option selected in the Search Console filter dialog
Choose Doesn't match regex to exclude everything that fits the pattern. Illustration.
Search Console report showing non-branded queries after excluding brand names with regex
The non-branded view: clicks drop, impressions stay high, average position rises. This is where your SEO work shows. Illustration with example data.

Common exclusions:

  • Brand and misspellings: acme|akme|acmee
  • Job seekers: \b(jobs?|careers?|salary|internship|vacanc)
  • Free and DIY traffic: \b(free|diy|template|tutorial)\b
  • Everything outside the blog (Page filter): /blog/

Compare segments with regex in compare mode

The filter dialog has a Compare tab. Since April 2021, compare mode supports regex for Query and Page, which is the quickest way to put two segments side by side: branded against non-branded, blog against service pages, or Dubai against Abu Dhabi.

Search Console compare tab with two regex filters
The Compare tab with a regex on each side. Illustration.
Comparison table of branded versus non-branded clicks, impressions, CTR and position
Branded queries usually have a far higher CTR and a position near 1. Non-branded is the segment to grow. Illustration with example data.

Useful comparisons:

  • Blog against services (Page): /blog/ against /services/
  • Two cities (Query): \bdubai\b against \babu ?dhabi\b
  • Questions against everything else (Query): ^(who|what|when|where|why|how|which)\b matches against doesn't match

Combine filters for AND logic

RE2 cannot say "contains seo AND contains dubai in any order" with lookaheads. You have two reliable options:

  1. Stack two filters. Add one Query filter \bseo\b and a second Query filter \bdubai\b. Search Console applies both.
  2. List both orders in one pattern. seo.*dubai|dubai.*seo matches the words in either order.

Stacking also lets you mix a positive and a negative rule, for example question queries (^(how|what|why|which)\b, Matches) that are not branded (acme, Doesn't match).

Seven SEO workflows that use regex

1. Find striking-distance keywords

Filter commercial queries with \b(best|top|price|cost|agency|company|services)\b, sort by position and look for terms ranking 8 to 20. These are the quickest wins for on-page optimisation and internal linking.

2. Spot keyword cannibalisation

Filter one query cluster, for example local seo, then open the Pages tab. If several URLs share impressions for the same intent, merge or differentiate them and set a clear canonical.

3. Build FAQ and AEO content

Filter question queries with ^(who|what|when|where|why|how|which|is|can|does)\b and look for high impressions with low CTR. Answer each one in a clear, quotable paragraph and add FAQPage structured data where it fits.

4. Track GEO and AI-style queries

Long conversational queries (^(\S+\s){9,}\S+$) and prompt-style queries (my location is|^(can you|help me|i need)\b) show how AI assistants and AI Mode send searches to Google on behalf of users.

5. Measure local SEO by area

Group city and district names, for example \b(deira|business bay|marina|jlt|jumeirah)\b, to see which areas bring impressions and which need their own landing page or Google Business Profile work.

6. Clean up indexing problems

Page filters such as [?&](utm_|gclid|fbclid), ^http:// and /(tag|author|feed)/ reveal URLs that should be canonicalised, redirected or set to noindex. Confirm each one in the URL Inspection tool.

7. Report non-branded growth

Save a non-branded view (Doesn't match acme|akme) and compare it month on month. It is the most honest measure of what SEO is adding beyond people who already know your name.

What we found testing these patterns on real Search Console data

To check the patterns behave the way this guide says, we ran them against a real export of our own Search Console data: the top 1,000 queries for topseoagency.ae over three months. The table shows the share of queries and impressions each segment captured.

SegmentRegexShare of queriesShare of impressionsTop match
Brand (top seo agency, any spacing)top ?seo ?agency|topseoagency1.1%2.6%top seo agency in dubai
Question words at start^(who|what|when|where|why|how|which|is|are|can|does|do|should)\b0.4%0.0%what's the best seo agency for e-commerce
Commercial: best/top/leading\b(best|top|leading|recommended|trusted|rated)\b22.1%32.4%best seo agency in dubai
Price and budget\b(price|prices|pricing|cost|costs|package|packages|cheap|affordable|budget)\b2.6%0.6%affordable seo services
"Near me"\b(near me|nearby|near by)\b2.4%2.7%seo agency near me
Any UAE location\b(dubai|abu dhabi|sharjah|ajman|ras al khaimah|rak|fujairah|umm al quwain|uae|emirates)\b52.4%73.1%seo agency dubai
No location at all\b(dubai|abu dhabi|sharjah|ajman|ras al khaimah|rak|fujairah|umm al quwain|uae|emirates)\b (Doesn't match)47.6%26.9%seo agency
Abu Dhabi\babu ?dhabi\b4.1%5.8%seo agency abu dhabi
Sharjah\bsharjah\b3.6%3.8%seo company in sharjah
Arabic script\p{Arabic}0.1%0.0%local seo دبي
Arabic SEO (English query)\barabic\b1.6%2.2%arabic seo agency uae
Long-tail (5+ words)^(\S+\s){4,}\S+$29.7%27.2%best seo agency in dubai
1 to 2 words^\S+(\s\S+)?$7.2%10.2%seo agency

Three findings worth acting on:

  • Location is the main signal. Queries naming a UAE location took the large majority of impressions. Searches with no location at all are a separate audience, and they usually need broader, national pages.
  • Commercial modifiers dominate. Queries containing "best", "top" or "leading" carried about a third of impressions. Those pages need comparison-ready content, clear pricing and proof.
  • AI prompts are already in the data. The prompt-style pattern surfaced 4 queries such as how do i find an seo agency that can deliver fast results for my e-commerce site?. my location is united arab emirates. These look like requests passed to Google by AI assistants: full sentences, a question mark followed by a full stop, and an explicit location. Filter for them in your own property. They show what AI users ask about your topic.

Regex vs the branded queries filter vs AI-powered configuration

Search Console now offers two newer ways to segment data. Regex still has its place alongside both.

FeatureWhat it doesWhen to use regex instead
Branded queries filterAnnounced in November 2025 and rolled out to all eligible properties on 11 March 2026. Uses AI to split queries into branded and non-branded automatically.Your property is not eligible, you need exact control over misspellings and sub-brands, or you want to segment competitors' brand names.
AI-powered configurationIntroduced in December 2025 and available to everyone since February 2026. Describe the report you want in plain language and Search Console sets filters, comparisons and metrics.The AI can misread a request, and you need a precise, repeatable pattern you can document, share and reuse in Looker Studio or the API.
Regex filtersExact pattern matching on Query and Page, with Matches and Doesn't match options and compare mode support.Use it whenever precision matters.

Common regex mistakes and how to fix them

SymptomLikely causeFix
Zero rows, no errorInvalid syntax such as a lookahead, a backreference or an unclosed bracketTest the pattern in a tool set to RE2 (see below) and remove unsupported features
Far too many matchesNo anchors, or a short word matching inside longer wordsAdd ^, $ or \b: \bseo\b stops "seoul" matching
Page filter misses URLsThe pattern assumes a path but Search Console matches the full URLRemember the protocol and domain: ^https://example\.ae/blog/
Dots match anything. is a wildcardEscape it: example\.ae, \.pdf$
Brand filter misses some searchesSpacing, misspellings or Arabic spellings not coveredList variants: acme|akme|ac me|أكمي
Totals differ from the unfiltered reportAnonymised queries are excluded once you filter by queryExpected behaviour. Google omits rare queries to protect user privacy, so query-filtered totals are lower
Only 1,000 rows visibleThe interface table and export show the top rows onlyUse the Search Console API, Looker Studio or the BigQuery bulk export for full datasets

How to test a regex before using it

  • regex101.com: choose the Golang flavour, which follows RE2 syntax. Paste a few queries or URLs as test strings and check what lights up.
  • Google Sheets: export your queries, then use =REGEXMATCH(A2, "your pattern"). Sheets uses RE2, so a pattern that works there works in Search Console.
  • Looker Studio and the API: Looker Studio's REGEXP_MATCH and the Search Console API's regex filter operators use the same syntax. Patterns you build here can drive dashboards and automated reports.
  • Start small: apply the simplest version of a pattern first, confirm it returns rows, then add alternatives one at a time.

SEO terms used in this guide

Query
The exact words a user typed into Google that led to an impression of your page.
Impressions
How many times a link to your site appeared in search results.
Clicks
How many times users clicked through to your site from search results.
CTR (click-through rate)
Clicks divided by impressions. Low CTR at a good position usually means the title or snippet needs work.
Average position
The average topmost position your site held in results for a query or page.
Branded vs non-branded
Branded queries contain your company name; non-branded queries do not and measure discovery.
Search intent
What the searcher wants: information, a comparison, a purchase, a location or a specific site.
Long-tail keywords
Longer, more specific queries with lower volume and usually higher conversion rates.
Striking distance
Keywords ranking just outside the top results, often positions 8 to 20, where small improvements pay off.
Keyword cannibalisation
Two or more of your pages competing for the same query and intent.
Canonical URL
The preferred version of a page you want Google to index when duplicates exist.
Anonymised queries
Rare queries Google withholds from reports to protect user privacy.
Featured snippet
A highlighted answer at the top of results, often linked with a #:~:text= fragment.
AI Overviews and AI Mode
Google's AI-generated answers in search, which cite and link to source pages.
GEO and AEO
Generative Engine Optimisation and Answer Engine Optimisation: making content easy for AI systems and answer boxes to quote.
E-E-A-T
Experience, Expertise, Authoritativeness and Trustworthiness, Google's framework for judging content quality.
Hreflang
Markup that tells Google which language or regional version of a page to show, for example English and Arabic.
RE2
Google's open-source regular expression library, used by Search Console, GA4, Looker Studio and Sheets.

For more definitions, see our SEO glossary.

Sources

Search Console regex FAQs

Quick answers to the questions people ask most about regex filters.

Ask us something else
Does Google Search Console support regex?

Yes. The Performance report accepts regular expressions on the Query and Page filters. Click + New, choose Query or Page, select Custom (regex), then choose Matches regex or Doesn't match regex and enter your pattern.

What regex syntax does Search Console use?

Search Console uses RE2, Google's regular expression library. It supports alternation, anchors, character classes, repetition, groups and Unicode classes, but not lookaheads, lookbehinds or backreferences.

Is Search Console regex case-sensitive?

Google's documentation has described the default differently over time. Query data is stored in lowercase, so case mostly matters for Page URLs. Start your pattern with (?i) for case-insensitive matching or (?-i) for case-sensitive matching to get a predictable result.

How do I exclude branded queries with regex?

Add a Query filter, choose Custom (regex), switch the second dropdown to Doesn't match regex and enter your brand plus its misspellings separated by pipes, for example acme|akme|acmee. Eligible properties can also use the branded queries filter.

Why does my regex filter return no results?

Either nothing matches or the pattern is invalid. Search Console does not show syntax errors, so a lookahead, backreference or unclosed bracket simply returns zero rows. Test the pattern in regex101 using the Golang flavour or with REGEXMATCH in Google Sheets.

How do I filter for queries containing two words in any order?

RE2 has no lookaheads, so either add two separate Query filters, which Search Console combines with AND, or list both orders in one pattern, such as seo.*dubai|dubai.*seo.

How do I find question queries in Search Console?

Use a Query filter with Custom (regex) and the pattern ^(who|what|when|where|why|how|which)\b. Add is|are|can|does|should to the group to include yes or no questions.

Can I use regex to filter page URLs?

Yes. Choose Page instead of Query. Page filters match the full URL including https:// and the domain, so escape dots and anchor with ^ when you need an exact section, for example ^https://example\.ae/blog/.

Is there a character limit for Search Console regex?

Each filter accepts roughly 4,096 characters. Group repeated parts with parentheses to keep long brand or keyword lists under the limit.

Does regex work in Search Console compare mode?

Yes. Compare mode has supported regex for Query and Page filters since April 2021, so you can compare branded with non-branded traffic or one site section with another.

Can I use the same regex in GA4, Looker Studio and Google Sheets?

Generally yes. GA4, Looker Studio and the REGEXMATCH function in Google Sheets also use RE2 syntax, and the Search Console API offers regex filter operators.

Get a free SEO audit of your website

Tell us about your business and we'll send a written audit within 48 hours, showing what is holding your rankings back and what to fix first.

  • Technical SEO review: speed, indexing, structure
  • Keyword gap analysis against three competitors
  • Google Business Profile and local SEO check
  • Prioritised action plan you can use with or without us
Noor Building 3, Mankhool, Dubai, UAE +971 56 766 0073 hello@topseoagency.ae

Request your audit

Fields marked optional can be left blank.

We reply within one working day. Your details are never shared. Privacy policy

Audit request received

Thank you. We've sent a confirmation to your email and will deliver your audit within 48 hours. If it's urgent, call us on +971 56 766 0073.