Toolkit com.teracloud.streams.regex 3.0.0

General Information

While the SPL Standard toolkit already provides a few regex functions, it does not provide pre-compiled regular expressions.

This toolkit provides several operators and native functions to run regular expressions in compilation or interpretation mode:
  • Compilation mode: The regex is compiled and executed on the first call, then directly executed on the subsequent calls.
  • Interpretation mode: The regex is interpreted on each call.

While pre-compiled regex patterns are optimal, interpreted patterns may be needed if for more flexible (dynamic) processing needs.

The toolkit provides support for the following regular expression libraries:

RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. RE2 uses automata theory to guarantee that regular expressions run in time linear in the size of the input.

Each operator and the native function set implement partial or full regex match and replace.

Third-party libraries
  • This toolkit embeds RE2 headers and libraries under impl/.
  • Boost Xpressive is not included but should already be available on the build system as Streams 7.2.0+ installs require the boost-devel rpm.
Release notes
Version
3.0.0
Required Product Version
7.2.0

Indexes

Namespaces
Operators
Functions
Types

Namespaces

com.teracloud.streams.regex
Types
com.teracloud.streams.regex.re2
Operators
Functions
com.teracloud.streams.regex.xpressive
Operators
Functions