Skip to main content
Reference walkthrough of the Common PCRE Expression example configuration: reusable regex-based cleanup, extraction, and validation patterns for transformer chains.

Overview

This page documents an importable Data Integrator example configuration (register.configuration.json) named [Example] - Common PCRE Expression (identifier example-common-pcre-expression). It is not built to solve one specific integration; it is a reference snippet consultants can copy into a real flow and adapt.
The configuration is a plain list-transformer object, so it can be imported directly into an environment and inspected transformer-by-transformer in the flow builder.
The chain starts with a data transformer containing a single value-setter. Each configuration entry pairs a sample input value with a string-regex-replace mapper, so the example doubles as a live preview of the pattern.
Alumio’s regex mappers use PCRE syntax, not JavaScript regex. Patterns are wrapped in / / delimiters and, unlike JavaScript, a match replaces all occurrences by default, no trailing g flag needed. Inline modifiers such as (?i) (case-insensitive) can be embedded directly in the pattern, as used in the country filter below.

String cleanup and extraction patterns

remove_html_tags and remove_non_alphanumeric_characters replace each matched run with a single space rather than collapsing whitespace afterward, so the result can contain doubled spaces (see the results above). In a real flow, chain the replace_multiple_spaces pattern afterward to normalize the output to single spaces.

Filter use case: validation flags

Bundled test fixture

The configuration ships with a transformer-test fixture (example-common-pcre-expression--sample-common-pcre-expression) that runs the whole chain against one sample record:
Against this sample record, all four validation flags evaluate to true. The fixture’s expected field is left as an empty placeholder ([[]]) in the source example, so anyone copying this test should fill in the actual expected output for their adapted flow before relying on it as a regression test.