Generate precise regex patterns for Google Search Console's URL and keyword filters — no regex knowledge required.
Input (URLs):
Output (Regex):
Input (Keywords):
Output (Regex):
Google Search Console's custom regex filter lets you segment your search performance data by URL patterns or keyword patterns. Instead of filtering one URL or keyword at a time, you can use a single regex pattern to match dozens of pages or queries simultaneously. This is especially powerful for large sites with URL structures like /blog/, /products/, or /location/.
| Filter Type | Use Case | Example Pattern |
|---|---|---|
| URL filter | Analyze performance of a specific site section | ^https:\/\/example\.com\/blog\/.*$ |
| URL filter | Compare multiple specific pages | ^(page-1|page-2|page-3)$ |
| Query filter | Find branded vs non-branded queries | ^(?!.*brand).*$ |
| Query filter | Match a specific keyword cluster | ^seo.*(tool|software|platform).*$ |
| Character | Meaning | Example |
|---|---|---|
| ^ | Match start of string | ^https matches URLs starting with https |
| $ | Match end of string | /contact$ matches URLs ending in /contact |
| . | Match any single character | /blog/. matches any character after /blog/ |
| * | Zero or more of previous | /blog/.* matches /blog/ and anything after |
| + | One or more of previous | /blog/.+ requires at least one character after /blog/ |
| \/ | Escaped forward slash | Must escape / in GSC regex patterns |
| \. | Escaped dot | Use \. to match a literal period |
| (a|b) | Either a or b | (blog|news) matches blog or news |
^https:\/\/example\.com\/blog\/^(?!.*\/$)\?.*utm_source\/category\/specific-category\/