Skip to main content

V1 - Query - Field Regular Expression Filter

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).

Example

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