xd-regex-module

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.

License

License

GroupId

GroupId

com.allenru
ArtifactId

ArtifactId

xd-regex-module
Last Version

Last Version

0.9.0
Release Date

Release Date

Type

Type

jar
Description

Description

xd-regex-module
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.
Project URL

Project URL

https://github.com/Russell-Allen/xd-regex-module
Source Code Management

Source Code Management

https://github.com/Russell-Allen/xd-regex-module.git

Download xd-regex-module

How to add to project

<!-- https://jarcasting.com/artifacts/com.allenru/xd-regex-module/ -->
<dependency>
    <groupId>com.allenru</groupId>
    <artifactId>xd-regex-module</artifactId>
    <version>0.9.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.allenru/xd-regex-module/
implementation 'com.allenru:xd-regex-module:0.9.0'
// https://jarcasting.com/artifacts/com.allenru/xd-regex-module/
implementation ("com.allenru:xd-regex-module:0.9.0")
'com.allenru:xd-regex-module:jar:0.9.0'
<dependency org="com.allenru" name="xd-regex-module" rev="0.9.0">
  <artifact name="xd-regex-module" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.allenru', module='xd-regex-module', version='0.9.0')
)
libraryDependencies += "com.allenru" % "xd-regex-module" % "0.9.0"
[com.allenru/xd-regex-module "0.9.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.9.0