GSC Tool

GSC Regex Builder

Generate precise regex patterns for Google Search Console's URL and keyword filters — no regex knowledge required.

Input Type

Examples

Input (URLs):

https://example.com/ https://example.com/collections/rice https://example.com/collections/basmati-rice

Output (Regex):

^https:\/\/example\.com(\/collections\/(rice|basmati-rice))?\/?$

Input (Keywords):

mobile phone repair near me iphone screen repair ipad screen replacement

Output (Regex):

^mobile phone repair near me$|^iphone screen repair$|^ipad screen replacement$

What Is Google Search Console 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/.

How to Use This GSC Regex Builder

GSC Regex Filter: URLs vs Keywords

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).*$

Regex Special Characters Reference

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

Common GSC Regex Use Cases