Search Console regex: why ^/ matches no pages
Search Console's page regex runs on the full URL, so a pattern starting ^/ matches nothing and gives no error. What I measured, and what to write instead.

In Google Search Console, a regex filter on pages is tested against the full URL, including https:// and the domain. So a pattern that starts with ^/, like ^/blog/, matches no page at all. No error comes back: an include filter returns nothing, and an exclude filter quietly removes nothing.
The empty result is easy to catch. The exclude case is the one that misleads, because the report looks normal.
What I measured on my own site
I ran each filter against tavi-ai.com's own Search Console property, for October 15 to November 10, 2026, through the Search Analytics API. Without a filter, the report listed 21 pages, and every one was a full address such as https://tavi-ai.com/guides/what-is-claude-md/. Eight of them sit under /guides/.
| Filter on pages | Pages returned |
|---|---|
| No filter | 21 |
Matches ^/guides/ | 0 |
Matches /guides/ | 8 |
Matches ^https://tavi-ai\.com/guides/ | 8 |
Doesn't match ^/guides/ | 21, the 8 guides still in |
Doesn't match ^https?://[^/]+/guides/ | 13 |
Matches /GUIDES/ | 8 |
Matches (?-i)/GUIDES/ | 0 |
The fifth row is the trap. If you meant "everything except the blog" and wrote ^/blog/, the numbers include the blog, and nothing tells you so.
What Google's help page says
Google's advanced filtering help page gives the rules. The syntax is RE2. Matching is a "partial match" by default, so the pattern can match anywhere in the URL unless you anchor it with ^ or $. It isn't case-sensitive unless you start the pattern with (?-i).
The page doesn't say in words that the target is the full URL. Its own example does: (?-i)AAA matches https://example.com/AAA. My ^/guides/ result is the same rule seen from the other side. I tested through the API and didn't repeat each filter by hand in the interface.
How to write a page regex that works
- Leave the pattern unanchored when the path is distinctive:
/guides/is enough. - When you need the start of the path, anchor on the whole address:
^https?://[^/]+/guides/matches any host, so it also coverswwwand other subdomains on a domain property. - After applying any filter, compare the page count with the unfiltered report. An exclude filter that drops nothing is the sign of a bad anchor.
- Lowercase and uppercase match each other unless you add
(?-i), so/Blog/and/blog/are both caught.
When a list of pages is too long for one regex
Google's API reference lists a maximum of 4,096 characters for filters. A regex that lists many full URLs one by one can run past that. TJ Digital's Search Console analysis skill now splits the list by page type, one regex per type: blog posts in one, service pages in another, a few odd pages sharing a third. TJ asked for it that way on November 11, so a quarterly review can still show traffic over time for every page the agency made or improved.
Pages of one type share most of their path, so each regex can write that shared part once. I haven't tested where exactly the limit cuts in; the figure is Google's.