When filtering reports or dashboards, you may want to apply more advanced pattern matching to refine your results. This can be done using regular expressions (regex) for greater flexibility. Follow the steps below to apply these advanced filters.
How to use regex in filters
-
1
In your report or dashboard chart, where the Matches filter is available, start your pattern with
@expr:followed by your regular expression (excluding the leading and trailing/).Example:
@expr:^Sales— matches any text starting with "Sales". -
2
You can also use regex option flags to modify your pattern matching.
Ignore Case — Use
@expri:to make your filter case-insensitive.Example:
@expri:saleswill match "Sales", "SALES", or "sales".
For more information on advanced filtering using a Matches filter, see the Wikipedia article on regular expressions or the .NET framework regular expression quick reference.
For real-life examples used in testing, see this document.
Questions or feedback? Please email us at support@brightmetrics.com.