Skip to content

Regex for Google Search Console

google search console regex examples

Regex examples for Google Search Console.

Use these to find hidden gem potential keywords to write a full article on, or see where you can add more content to improve your niche coverage. Here is how to enter a custom regex in search console.

  1. Open google search console
  2. Click “performance”
  3. Click “new”
  4. Click “query”
  5. Select “Custom (regex)” from dropdown
  6. Type in your chosen (modified for your own use) regular expression below in the keyword field



List Search Phrases including a Specific Keyword


Matches queries that are exclusively “apple.”


List Search Phrase  Beginning with a Specific Word


Matches queries that start with “apple” (e.g., “apple pie”, “apple orchard”).


List Search Phrase Ending with a Specific Word


Matches queries that end with “apple” (e.g., “green apple”).


List Search Phrases Containing a Specific Word Anywhere


Matches queries that have “apple” anywhere (e.g., “apple pie”, “caramel apple”).


List Search Phrase Excluding a Specific Word


Matches queries that don’t have the word “apple.”


List Search Phrase with Multiple Words (OR condition)


Matches queries containing either “apple,” “orange,” or “banana.”


List Search Phraseof a Specific Length in words


Matches queries that are exactly 5 characters long.


List Search Phrase with Numbers


Matches queries that contain any number.


List Search Phrase without Numbers


Matches queries without any numbers.


List Search Phrase with Specific Prefix and Suffix


Matches queries that start with “apple” and end with “pie.”


List Search Phrase with Two Words Only


Matches queries with only two words.


List Search Phrase Containing Special Characters


Matches queries with any of these special characters.


List Search Phrase Excluding Multiple Words


Matches queries that don’t have “apple,” “orange,” or “banana.”


List Search Phrase with Variations of a Word


Matches queries with “apple” or “apples.”


Match Queries with Hyphenated Words


Matches queries with hyphenated words like “self-employed.”


Match Queries with Exact Phrase

^apple pie recipe$

Matches only the query “apple pie recipe.”


Keywords Excluding Special Characters


Matches queries without any of these special characters.


Match Multiple Word Variations


Matches queries containing “baseball,” “basketball,” or “football.”


Match Queries with 3 Words or More


Matches queries with 3 words or more.


Match Long Tail Keywords (5 words or more)


Matches queries that have 5 words or more.


Remember, when using any regex in Google Search Console, it’s important to double check your regex to be sure they are providing the data you want accurately. Adjust as needed based on your specific requirements and website’s content

Google Search Console Regex Examples

I am the founder of SEO Leaders and have been involved in the internet and web development in one way or another for over 20 years. Since founding SEO Leaders some 6 years ago I have been heavily involved in web develepment, Digital PR and technical SEO for a wide variety of projects. I hope to enlighten you on a wide range of topics related to my chosen profession!

Back To Top