Using Advanced Pattern Matching with Text Filters

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. For instance:

Ignore Case: Use @expri: to make your filter case-insensitive.

Example: @expri:sales will match “Sales”, “SALES”, or “sales”.


image (46).png

For more information on advanced filtering for a matches filter please see the Wikipedia link here. Or the .net framework regular expression examples here.

For some real-life examples that we have used in testing please see the link here.

 

Questions or feedback? Please email us at support@brightmetrics.com

 

 

 

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.