Regular expression filter support coming to Google Search Console performance reports

This new support is mentioned in the Google help documents but does not seem to be live yet.

Chat with SearchBot

Google updated the help document for the performance report within Google Search Console to say you can use regular expressions to filter the report results.

Google wrote, “If you choose the Custom (regex) filter, you can filter by a regular expression (a wildcard match) for the selected item. You can use regular expression, or regex, filters for page URLs and user queries. The RE2 syntax is used.”

Regular expressions. Regex is often used by developers, but RE2 is the same regex syntax Google Analytics users are accustomed to using for querying data. Regex can be super powerful and fast in filtering data and even for replacing data, but it can also be tricky to get right. Regular expressions is a sequence of characters that define a search pattern. Usually such patterns are used by string searching algorithms for “find” or “find and replace” operations on strings, or for input validation.

More on what you can do. Google listed these bullets in the help document:

  • The default matching is “partial match”, which means that your regular expression can match anywhere in the target string unless you use ^ or $ to require matching from the start or end of the string, respectively.
  • Default matching is case-sensitive. You can specify “(?i)” at the beginning of your regular expression string for case-insensitive matches. Example: (?i)https
  • Invalid regular expression syntax will return no matches.
  • Regular expression matching is tricky; try out your expression on a live testing tool, or read the full RE2 syntax guide

Examples. Google also listed the more common ways to use this in the help document:

Regex Performance Report Google

Coming soon. It is not clear when this will go live but I suspect when you try to filter by page or query and other of the performance filters, you will see the option to use regex there at some point. At the time we published this, Google removed all mentions of regex from the help document.

Why we care. This will give SEOs and developers an additional way to get out more data, the way they want to see it, from Search Console. You need to be careful when using regex, in that often if done wrong, the outcome will be wrong as well. At least in this case, this is just being used as a “find” command and not a “find and replace” command. So you cannot do damage, in the sense of removing your site from Google search with this. But you can do damage in that you can misinterpret your data if you use this the wrong way.


About the author

Barry Schwartz
Staff
Barry Schwartz is a technologist and a Contributing Editor to Search Engine Land and a member of the programming team for SMX events. He owns RustyBrick, a NY based web consulting firm. He also runs Search Engine Roundtable, a popular search blog on very advanced SEM topics.

In 2019, Barry was awarded the Outstanding Community Services Award from Search Engine Land, in 2018 he was awarded the US Search Awards the "US Search Personality Of The Year," you can learn more over here and in 2023 he was listed as a top 50 most influential PPCer by Marketing O'Clock.

Barry can be followed on X here and you can learn more about Barry Schwartz over here or on his personal site.

Get the newsletter search marketers rely on.