Skip to content

A Spring XD processor module that transforms a payload string into a Tuple using a Regular Expression, where each capture group in the regular expression is mapped to a tuple field.

Russell-Allen/xd-regex-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Spring XD Regular Expression Module

Transform a string into a Tuple using a Regular Expression.

Overview

This tiny module (single class) can be added to an XD Stream to transform a string based payload into a multi-field Tuple, where the field names and values are the regular expression capture group name/number and matching value respectively.

Download

This library is available via the maven central repository at the following coordinates:

    <groupId>com.allenru</groupId>
    <artifactId>xd-regex-module</artifactId>

Usage

Known Issues

This is alpha code. The internals work. I've run this as an XD module in the past, but I've not setup an XD server locally to test this build. I expect that this is NOT A VALID MODULE. I'm pushing this into the public domain now though, with the hope that I'll get around to wrapping this up into a proper module that others may easily import and used. After all... regex based transform seems like a core capability, and this approach is too convenient to ignore.

About

A Spring XD processor module that transforms a payload string into a Tuple using a Regular Expression, where each capture group in the regular expression is mapped to a tuple field.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages