Skip to content

matchRegex Condition

orbenharosh edited this page Feb 19, 2023 · 6 revisions

matchRegex

The condition works on string fields only.

  • field
  • regex
  • caseInsensitive - default false (optional)
  • matchPartOfValue - default true (optional)

Examples

{
    "steps": [
      {
        "if": {
          "condition": {
            "matchRegex": {
              "field": "message",
              "regex": "^value"
            }
          },
          "then": [
            {
              <processor or statement>
            }
          ]
        }
      }
    ]
  }
Clone this wiki locally