Pattern matching
Elimity Insights provides several options for comparing attributes with expected values. In most cases, a simple 'equals', 'contains' or 'starts with' check is sufficient. However, from v3.24.0 onwards, users can also perform flexible pattern matching for more complex use-cases. The list below provides some example queries that were previously impossible:
find all files with a path containing at least 2 slashes: path matches pattern
/.*/find all users with an invalid phone number: phone does not match pattern
^\d{4}/(\d\d\.){2}\d\d$find all groups with a name that starts with 8 digits: name matches pattern
^\d{8}
The Google RE2 specification provides a technical explanation of how these patterns work exactly. For a quick overview, refer to the cheat sheet at https://yourbasic.org/golang/regexp-cheat-sheet/#cheat-sheet.
Last updated

