In Entuity, attributes values in which you can free type also allow entry of regular expressions (Regex). When defining filter rules with regular expression, note that pattern matching is case-sensitive.
- It is unnecessary and expensive to include .* at the beginning or end.
Instead of .*Et0/1/0.* use Et0/1/0
- It is also expensive to use capturing groups.
(<text-to-match) is a capturing group, (?:<text-to-match) is a non-capturing group.
- Case insensitive matches should be avoided - these are expensive due to the need to support multiple character sets.
Therefore, do not use (?i) or /i unless it is unavoidable (and if so, use it for the smallest part of the search).
- a name that includes lon:
- a name that starts with lon:
- a name that starts with either lon or par:
- a name that ends in 1:
- a name that ends in a, b or c:
- a name that contains at least one digit:
- a name that include s, t, u or v:
- a name that include a pair of digits next to each other:
- a name that has x as the fourth character:
- 1 or more special characters (metacharacters) in their name require that the character is escaped. For example, a name with a plus sign is escaped using the backslash: