Skip to content

GSC Regex Builder

Generate RE2-compatible regex patterns for Google Search Console filters β€” free, with built-in guidance GSC's regex quirks won't trip you up.

Runs entirely in your browser β€” your files are never uploaded to a server.

This tool processes your file entirely in your browser. Nothing is uploaded to our servers.

How It Works

1. Choose Your File

Drag & drop or select the file you want to work with.

2. Processed in Your Browser

Everything happens locally on your device β€” your file is never uploaded anywhere.

3. Download Your Result

Get your finished file instantly, ready to save or share.

About GSC Regex Builder

Google Search Console’s regex filters don’t use the regex syntax most tutorials teach. Search Console runs on RE2, Google’s own engine β€” and RE2 deliberately doesn’t support lookahead, lookbehind, or backreferences at all, which quietly breaks a lot of regex advice circulating online, including patterns that look like they should work for excluding keywords.

This tool generates GSC-compatible patterns directly β€” paste in a list of keywords or phrases, and it builds a properly escaped, word-boundary-wrapped pattern that will actually work when pasted into Search Console’s Performance filter.

A worked example: entering “buy now,” “pricing,” and “discount code” generates b(?:buy now|pricing|discount code)b β€” each term is escaped (so a term containing a literal “?” or “+” doesn’t break the pattern) and wrapped in word boundaries, which prevents an over-broad match like “pricing” accidentally matching inside an unrelated longer word.

Excluding terms in GSC isn’t done with a “not” pattern inside the regex itself, since RE2 has no way to express that β€” instead, you use that exact same positive pattern, but select “Doesn’t match regex” in Search Console’s own filter dropdown. This tool builds the pattern either way; which dropdown option you pick determines whether it’s an include or exclude filter.

Already have a pattern from somewhere else? The built-in checker scans it for known RE2-incompatible constructs β€” paste in a classic negative-lookahead attempt like ^(?!.*(brand)).*$ and it flags exactly why that specific pattern will fail in Search Console, before you find out the hard way inside GSC itself.

Frequently Asked Questions

Why doesn't my "not X" regex work in Search Console?

GSC uses Google's RE2 engine, which has no negative lookahead at all β€” there's no way to express "not" inside the pattern itself. Use the same positive pattern with the "Doesn't match regex" dropdown instead.

Does this work for the Page dimension too, not just Query?

Yes β€” regex filters work on both Query and Page in Search Console, though Page filtering is case-sensitive while Query filtering isn't.

What's the character limit for a GSC regex pattern?

4,096 characters. If you hit that limit, split your filter into multiple stacked filters instead of one long pattern.

Can I check a regex I found in a tutorial before using it?

Yes β€” paste it into the "check your own pattern" field to see if it uses any RE2-incompatible syntax before you try it in Search Console.