Regular Expressions Usage Guide

 

Regular expressions are used in computer programming, allowing people to search through many lines of code for a specific piece of data or find a specific and precise set of information that would otherwise take them many hours of searching and sifting about.

 

At Qualaroo, we use regular expressions (shortened to regex and regexes) to let you target your surveys to a specific set of pages or URLs that are complex or dynamic.

 

Key Benefits

 

  • Targeting Specific Pages: Customize your surveys to display only on designated pages using regex patterns.
  • Dynamic URL Matching: Seamlessly adapt your survey targeting to dynamic URLs that follow a pattern.
  • Complex URL Structures: Effectively handle intricate URL structures and still achieve accurate targeting.

 

In this article,

1. Excluding URLs, Focusing on specific URLs - Negative and Positive Lookaheads

2. Backslash - Escape!

3. Question Mark - Not Required

4. Digits and Word Characters

5. Dot-Star: Anything Goes!

6. The OR Pipe (|) - How to Target Several Specific Pages on Your Site

7. Using Parentheses, Brackets, and Sets

 

Click on the titles to expand and learn about the use of basic characters in the regular expression:
 
  • Excluding URLs, Focusing on specific URLs - Negative and Positive Lookaheads

  • Backslash - Escape!

  • Question Mark - Not Required

  • Digits and Word Characters

  • Dot-Star: Anything Goes!

  • The OR Pipe (|) - How to Target Several Specific Pages on Your Site

  • Using Parentheses, Brackets, and Sets

 

You can also download this guide in a single PDF from the link below:

 

 

That is all about the introduction to regular expressions for URL targeting.

 

 

© 2005 - 2025 ProProfs
-