What are Regular Expressions?
Regular expressions, often abbreviated as "regex", are a powerful tool for working with text. Think of them as advanced search patterns that can match text in strings (e.g. URLs)
If you need a way to filter reports in Ryte based on very complex or sophisticated URL patterns - regular expressions are the way to do this!
How do you apply regular expressions in Ryte Reports?
You can apply regular expression filters in all Data Explorer based reports in Ryte by selecting “matches regex” or “does not match regex” as operators:
For example applying a filter “URL matches regex” with the following expression
https://(en|de)\.ryte\.com/(wiki|magazine)
will return all of URLs in the /wiki or /magazine folders in German or English language on the ryte.com domain and https protocol.
Please note that the regular expressions used in Ryte’s filters, require to follow the standards of the Java Regex Pattern.
In case you see the following error or notice unexpected results in your reports after applying a filter, please note that the provided regular expression pattern might not be valid.
Regex filters at Ryte are evaluated case-senstively.
So filtering for https://(en|de)\.ryte\.com/(wiki|magazine) will provide different results than filtering for
https://(en|de)\.RYTE\.com/(Wiki|Magazine).
How do you create a regular expression and make sure it’s valid?
We recommend using a regular expression builder or testing tool such as regex101.com to validate that your regular expression works as expected before you use them in your Ryte report. Tools like this also support you with the sometimes tricky syntax of creating regular expressions.
Make sure to choose Java as ‘flavor’ in any of these tools so the resulting regular expressions are compatible with the reports in the Ryte platform.