Altova MapForce 2024 Enterprise Edition

Use the Split once with delimited (line starts with) mode if the split should occur at the first line which begins with the specified separator. When you select this mode, two fragments of text are created, as follows:

 

The first fragment contains all the text up to the line where the separator is.

The second fragment contains the remaining text, including the line where the separator is.

If the separator is at the beginning of the first line, no split occurs (that is, the first resulting fragment remains empty).

 

The settings applicable to the are listed below.

 

Regular expression

This is an optional setting which splits text into two fragments when there is a regular expression match (see Splitting Text with Regular Expressions ). The default value is "no".

 

Separator

Specifies the character(s) to be used as separator. The default value is "none" (no separator).

 

Split base

Head

Look for the first occurrence of the separator starting from the beginning of text.

Tail

Look for the first occurrence of the separator starting from the end of text.

 

For example, in the image below, the split occurs at the first line which begins with the specified separator ("General outgassing pollutants"). If the Split base option was set to tail, then the split would have occurred at the first line which begins with the specified separator, starting from the end (which in this example happens to be the same line).

SplitOnce-DelimitedLineStartsWithExample

The first resulting fragment is as follows:

SplitOnce-DelimitedLineStartsWithExample02

The second resulting fragment is as follows:

SplitOnce-DelimitedLineStartsWithExample03

© 2017-2023 Altova GmbH