Previous Topic: Per Character MatchingNext Topic: TransformEx


Transforms

You can apply transforms to extracted text when you create a user-defined variable. This enables you to convert the extracted data into a standardized form, usually to make searching easier.

This attribute has the following syntax:

%<MyVar transform=”{toLower|toUpper|stripWhitespace|onlydigits|onlyalpha}”>%

Applies one of the transforms to the extracted text written to the %<MyVar>%.

toLower

Converts to lower case.

Effect: GB123 transforms to gb123.

Example usage: This example ensures that values for the %<User_ID>% variable are always in lower case:

%<User_ID transform=”toLower”>% %#GB\d\d\d% %</User_ID>%

toUpper

Converts to upper case.

Effect: gb123 transforms to GB123.

stripWhitespace

Removes all spaces

Effect: abc 123 transforms to abc123.

onlydigits

Retains only numbers. Strips out letters and other characters.

Effect: abc 123 transforms to 123.

onlyalpha

Retains only letters. Strips out numbers and other characters.

Effect: abc 123 transforms to abc.