How to QUERY Google Search Console with all Words Containing “Small” and “Stroller”

For Google Search Console (GSC), the regex (regular expression) filter must follow RE2 syntax, which does not support lookaheads like (?=...).

To match queries containing both “small” and “stroller” in any order, use this regex:

on Ruby
^(?=.*small)(?=.*stroller).*

GSC-Compatible Regex:
.*small.*stroller.*|.*stroller.*small.*

What it does:

  • Matches any query that contains both small and stroller, regardless of which comes first.

  • Allows any characters before, between, or after the words.

How to Use in GSC:

  1. Go to Performance > Queries.

  2. Click + New > Query.

  3. Choose “Custom (regex)”.

  4. Paste this regex:

    .*small.*stroller.*|.*stroller.*small.*

So i tried another and give me good result for

.*lightweight.*stroller.*|.*stroller.*lightweight.*

Now i wanted a search result from GSC containing

small, lightweight, compact and stroller

This query have a good result

This version should return queries that include “stroller” and any of the size-related terms:

stroller.*(lightweight|compact|small)|(?:lightweight|compact|small).*stroller

  • Finds queries where:

    • “stroller” comes before any of the size terms, or

    • Any of the size terms come before “stroller”

  • It avoids lookaheads (which GSC does not support)

Example Matches:

  • best lightweight stroller for dogs

  • compact pet stroller

  • stroller for small cats

  • small dog stroller lightweight

 

and this query works well

stroller.*(light|compact|small)|(?:light|compact|small).*stroller

 

I was overwhelmed by the huge keyword and i found out that it will not give a good landing page given that i am allow to put 4 paragraph only. So i move to remove the small  and get the result of just  lightweight and compact.

 

I am not loving this Chatgpt