Research Guides
Test a Search Console Regex Against Near-Match URLs
A Search Console page filter can return plausible totals for the wrong group of pages. Before comparing two periods, test whether your expression includes the URLs you intend and excludes their lookalikes.
Write the comparison group first
Suppose a fictional site wants to compare exactly two product pages, /products/atlas and /products/orbit. Record whether trailing slashes, parameters, localized versions and related pages belong in the group. There is no universal answer: use the URLs you actually intend to measure.
Try the expression against a small fixture
Google’s advanced filtering guide explains that Search Console uses RE2 syntax and matches a substring by default. A pattern such as atlas|orbit can match names or parameters elsewhere in a URL. To require one of two whole URLs without a trailing slash, try ^https://example[.]com/products/(atlas|orbit)$. The anchors constrain both ends; the bracketed dot denotes a literal dot.
- Should match:
https://example.com/products/atlasandhttps://example.com/products/orbit. - Should not match:
/products/atlas-guide,/products/orbit/,/products/atlas?variant=blue, or the same path on another host. Test these as full URLs.
The fixture is a way to review pattern logic, not a claim that every variant appears in Search Console. Use the page rows returned by the report to verify what your filter actually included.
Save enough detail to repeat the comparison
Record the expression, property, search type, dates and other filters with the result. For the property check, use the Search Console scope worksheet. Google notes that applying URL or query filters can affect reported totals, including through data truncation and omitted anonymized queries; don’t treat a filtered total as proof of complete URL or query coverage.
Reusable check: Intended pages | examples that must match | near matches that must not | exact expression | returned page rows | property and dates.