Search Images Maps Play YouTube News Gmail Drive More »
Sign in

Promotions

Use regular expressions in promotions

If you want a promotion to appear for a variety of highly similar queries, you can use regular expressions to define your trigger queries. For example:

  • pizza \d{5,5} will match any 5-digit postal code queries, like "pizza 98102"
  • digital\scameras? will match the queries "digital camera" or "digital cameras".

To dynamically update a promotion URL or title with the content of a user query, use $q.
Using the new Custom Search beta? Click here.

If the Regular expression checkbox is selected, Custom Search will treat everything typed in the search box (including commas) as a single regular expression.

Tell us how we're doing - Answer five short questions about your help center experience

Enhance your organization's website even more with Google Site Search.