- Search Overview
- Search Home Page
- Performing Searches
- Basic Search
- Advanced Search
- Advanced Search Building Blocks
- Running an Advanced Search Query
- Query Syntax
- Query by Subject
- Query by Vendor and Product
- Query by Field and Value
- Query by Context Table
- Query Using Regex
- Query Using Wildcards
- Free Text Search
- Query Using Advanced Query Language Operators
- Query Using Aggregation Functions
- Query Using Structured Fields
- Dynamic Field Extraction
- Natural Language Search
- Anomaly Search
- Refine a Search
- Context Tables in Search
- Search Best Practices
- Search Results
- Histogram View of Search Results
- Search Results Navigation Bar
- Timeline View of Search Results
- List View of Search Results
- Table View of Search Results
- Aggregated Search Results
- Event Details
- Detection Details
- Entity Details
- Data Insights
- Export Search Results
- View and Download Exported Search Result Files
- Dashboard Visualizations
Query Using Regex
Search supports all standard Regex searches.
Regex use in Search is based on the Golang flavor of Regex. For reference information about regex syntax, see the following sites:
regex101 – Select the Golang flavor from the panel on the left. Then enter a specific Regex pattern to see an explanation.
https://regexr.com/ – Enter a specific Regex pattern to see an explanation (not Golang-specific but very user-friendly).
https://github.com/google/re2/wiki/Syntax – Reference to understand the specific Regex capabilities Exabeam supports.
Note
Regex can be complex with a steep learning curve, so you might want to experiment and test your queries before entering them into the Search application.
Use the following tool to test your queries: regex101.
The following subsections describe the regular expression syntax that is supported by Search and provide some syntax examples:
Note
Exabeam Search supports the regex capabilities of the RE2 engine. Certain syntax, such as back referencing, is not supported by the RE2 engine and can return inaccurate results when used in Search queries. For the full list of regex operators supported or not supported by RE2 syntax, refer to the RE2 Syntax documentation: https://github.com/google/re2/wiki/Syntax
Regex (RGX) Operators
Perform complex case sensitive or case insensitive queries using the RGX or RGXi operators.
Note
Regex operators will also work with query by field searches.
Operator Descriptions | Example Syntax |
|---|---|
To indicate that an expression should be treated as Regex, start with either RGX or RGXi and enclose the Regex in double quotes inside of parentheses. | Case Sensitive Syntax: Performs a case-sensitive search and will match Case Insensitive Syntax: Performs a case-insensitive search and will match |
To group expressions within Regex, use parentheses. | Syntax: Will match |
A double quote is a reserved character in Regex. To use a double quote within a Regex but preserve its literal meaning, it must be escaped by preceding it with a backslash. | Syntax: Will match The following syntax that uses un-escaped quotes will return an error: |
Parentheses are reserved characters in Regex. To use parentheses within a Regex but preserve their literal meaning, they must be escaped by preceding them with a backslash. | Syntax: RGX("\(Microsoft\)") Will match The following syntax that uses un-escaped parentheses within parentheses will return an error: |
A backslash is a reserved character in both Regex and Exabeam Query Language. To use a backslash within a Regex but preserve its literal meaning, it must be escaped from both languages using additional backslashes. This requires using four backslashes in a row, as shown below. ![]()
|
Will match |
Regular Expression Examples
The following table illustrates examples of regular expressions, including sample results of what the Search query might find:
Regex Syntax Examples | Description | Sample Results |
|---|---|---|
| Run a case-sensitive search for any vendor field value that contains the token |
|
| Run a case-sensitive search for any vendor field value that contains the token string |
|
| Search for any |
|
| Search for any user field value that exactly matches the string | SQK |
| Search for any user field values that have any numeric character occurring between 7 and 15 times, inclusive. |
|
| Search for any Use a backslash to escape any forward slashes: |
|
| Search with the hex representation of a character. |
|
