/
Common regex patterns
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+)
OR condition
For example to check two paths in one URL condition
example.com\/(shop|login)\/
Case insensitivity
URL conditions are case sensitive, to make them case insensitive, you can add the /i
flag :
example\.com/i
Remember to enable regex in the deployment condition, otherwise it will not work
, multiple selections available,
Related content
Which cookies do we use?
Which cookies do we use?
More like this
Embedded form in FAQ case
Embedded form in FAQ case
More like this
How do I know if a user has already seen or submitted a feedback form?
How do I know if a user has already seen or submitted a feedback form?
Read with this
What conditions to trigger a form are available?
What conditions to trigger a form are available?
More like this
Charts
Charts
Read with this
How does form logic (question routing) work?
How does form logic (question routing) work?
More like this