Skip to main content

regex

Purpose

regex extracts the first instance of a regular expression pattern. Most regular expression patterns are supported but for edge cases check out Go's regexp documentation.

Usage

"type": "regex",
"config": {
"pattern": "<regular expression>"
}

Example

Configuration

"type": "regex",
"config": {
"pattern": "\d{4}(-\d{2}){0,2}$"
}

Input Token

filter=(contains(subject, 'order') and ReceivedDateTime ge 2021-04-19

Transformed Token

2021-04-19