Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Query - Field Regular Expression Filter

Table of contents
  1. sRegexp(field, value)
  2. Example

sRegexp(field, value)

The sRegexp filter is used to search the content of a field, for a string matching the given regular expression RegExp.

search sRegexp("@fields.isprime","y.*")

In the above example, the search matches all records where the value of the ‘@fields.isprime’ field contains matches to the regex “y.*” (letter y, followed by zero or more character).


The example below uses the demo-dataset from the introduction/tutorial page, dataset.

search sRegexp("@fields.isprime","y.*")
let {id, isprime, odd, even} = f("@fields")

Note that the search filter does not return a presentable value. It is almost always following by the data extraction command ‘let’.

Page last updated: 2022 Oct 02