Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Cardinality

Description

<Regex>1 or more

Specifies a transform rule to apply to each value of the designated input attribute(s). See above for details on the element function

Attributes

Name

Type

Req?

Description

matchstringY

Specifies a regular expression to match against the input value(s). It can contain parentheses to specify capturing groups. 

deststring

Specifies the ID of a new attribute to create that will contain the transformed values. If not present, the transformed values replace the original attribute's values "in-place", if and only if the original attribute was a "simple" string-valued attribute. Other attribute types with more complex values cannot be transformed in-place.

Element Content

A replacement expression that can contain group placeholders to match the capturing groups (e.g., $1, $2, etc.). If the match expression does not match, the value is passed through unchanged.

Example

Warning

This is a bit overly simplistic, and assumes the source values are in a particular format.

...