Regular expressions (REGEX) cheat sheet

You can easily customize the presence of the Lucky Lottery on the website by using regular expressions. Click on “Customize impressions” switch on the Lucky Lottery's settings and choose "URLs matches regex":

REGEX cheat sheet:

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

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

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

.+ourdomain.com/((?!fi|fr|es)).* — limits the lottery 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 lottery does`nt appear on pages containing /de/

/de/ — Regex for all pages that contain /de/ Example: the lottery appears only on pages containing /de/

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

(blog|career)\.rovertask\.com(?!.*/(new_features|update)) The lottery appears only inside the subdomain blog.rovertask.com and career.rovertask.com except for url containing /new_features or /update. The lottery 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 lottery appears on rovertask.com and rovertask.com/prices but not on the blog.rovertask.com or career.rovertask.com