Common regex patterns
There are a couple of scenarios where regex can help to make sure that a survey is shown on the correct page or pages. We list some of these situations and the regex pattern that can be used below.
To test regex patterns we recommend a third-party site called regex101.
Show a survey only on a specific page (for example the homepage)
example\.com(\/$|$|\?|\/\?)
Show a survey on all pages except a specific page (for example excluding the homepage)
example\.com(\/\w+)
Case insensitivity
URL conditions are case sensitive, to make them case insensitive, you can add the /i
flag :
example\.com/i