Regular expressions (REGEX) cheat sheet

You can easily customize the presence of the signal on the website by using regular expressions. Click “Location” (1) switch on the signal editing page and choose "URLs matches regex" (2):

REGEX cheat sheet:

\.html$ — shows a signal on the pages with a certain file extension. Example: hoversignal.com/testpage.html Signal will be displayed only on pages with a .html at the end of the link.

/basket — shows a signal on the pages with a certain word in the URL. Example: hoversignal.com/basket Signal will be displayed only on pages with a in the URL.“basket” at the end of the link.

/(basket|order) — shows a signal on the several pages with certain words in the URL Example: hoversignal.com/basket hoversignal.com/order Signal will be displayed only on pages with a “basket” and “order” in the URL.

.+ourdomain.com/((?!fi|fr|es)).* — limits the social proof in english to the root of the domain. Example: Your english website is under ourdomain.com/ translations in subfolders /es /fi /fr

^((?!/de/).)*$ — Regex for all pages that do not contain /de/ Example: The signal does`nt appear on pages containing /de/

/de/ — Regex for all pages that contain /de/ Example: The signal appears only on pages containing /de/

/blog/.+ — The signal appears inside the directory blog/, but not on the blog page itself Example: The signal appears on rovertask.com/blog/new_features, but not on the rovertask.com/blog

(blog|career)\.rovertask\.com(?!.*/(new_features|update)) The signal appears only inside the subdomain blog.rovertask.com and career.rovertask.com except for url containing /new_features or /update. The signal won't appear at the main page (rovertask.com)

^http(s?)://hoversignal\.com.* Regex for all pages within the main domain except subdomains. Example: The signal appears on rovertask.com and rovertask.com/prices but not on the blog.rovertask.com or career.rovertask.com