Skip to content
This is an archived version of the documentation downloaded from LogScale Documentation Archives. Up to date documentation, and documentation for later versions, is available on LogScale Documentation

## Regular Expression Query Functions

LogScale's regex related functions make use of the LogScale regular expression engine. See Regular Expression-based Field Extraction for more information on writing regular expressions.

Table: Regular Expression Query Functions

Function | Default Argument | Availability | Description
--- | --- | --- | ---
`array:regex(array, [flags], regex)` | `array` |  | Checks whether the given pattern matches any of the values of the array and excludes the event from the search result.
`regex([field], [flags], [limit], regex, [repeat], [strict])` | `regex` |  | Extracts new fields using a regular expression.
`replace([as], [field], [flags], regex, [replacement], [with])` | `regex` |  | Replaces each substring that matches given regular expression with given replacement.
`splitString([as], by, [field], [index])` | `field` |  | Splits a string by specifying a regular expression by which to split.

#### Enter search term