• v7.5.0
    • v7.11.0 (latest)
    • v7.10.0
    • v7.9.0
    • v7.8.0
    • v7.7.0
    • v7.6.0
    • v7.5.0
    • v7.3.0
    • v7.2.0
    • v7.1.1
    • v7.1.0
    • v7.0.8
  • Services & Support
  • Devo.com
  • Contact
    • Contact Us
    • Request a Demo
    • Partner Inquiry
  • Log In
    • USA Devo
    • EU Devo
PREVIOUS
JSON Parser
NEXT
Text Formatter

Flow / Unit types / Text / Regex

Download as PDF

Regex

Description

This unit is a Processor unit type.

The Regex unit matches some text against a given RegExp, optionally providing captured groups as output event fields. RegExp uses Java syntax.

An event comes in through the in port. The regular expression set in the properties is executed and the match is performed.
Successful input events are enriched with new fields containing captured groups, and the event is output through the match port.
If an error occurs, the input event is enriched with new fields describing the problem, and the event is sent through the fail port.

Configuration

After dragging this unit into the Flow canvas, double-click it to access its configuration options. The following table describes the configuration options of this unit:

TabFieldDescription

General

NameEnter a name for the unit. It must start with a letter, and cannot contain spaces. Only letters, numbers, and underscores are allowed.
Regular expressionEnter a Java regexp to determine the behavior of the unit.
Match field nameThe name of the input event field containing text to be matched.
Unnamed field prefixA prefix for output event fields containing unnamed capture groups. Leave empty if you do not wish to apply.
FindWhether regexp is to match full text (false), or only part of it (true).

Input ports

PortDescription
inEvents containing a field with text to be matched.

Output ports


PortDescription
match

Outputs events enriched with a field containing the captured groups.

For named groups, a field with that name is added. For unnamed groups, and if the unnamed Field Prefix setting is set, fields starting with that prefix and growing numeric suffixes (starting at 1) are added.

fail

Signals when an error occurs and outputs input events, unmodified.





Download as PDF

PREVIOUS
JSON Parser
NEXT
Text Formatter

Export

See what Devo can do for you. Request a demo!
Discover what's new (Release notes)
  • v7.5.0
    • v7.11.0 (latest)
    • v7.10.0
    • v7.9.0
    • v7.8.0
    • v7.7.0
    • v7.6.0
    • v7.5.0
    • v7.3.0
    • v7.2.0
    • v7.1.1
    • v7.1.0
    • v7.0.8
  • Services & Support
  • Devo.com
  • Contact
    • Contact Us
    • Request a Demo
    • Partner Inquiry
  • Log In
    • USA Devo
    • EU Devo
  • +1 888 6830910 (USA)
  • +34 900 838 880 (Spain)
Copyright © 2019 Legal Terms Privacy Policy Cookies Policy

Powered by Confluence and Scroll Viewport