Extracting part of a text - 8.0

Talend Data Preparation User Guide

Version
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Data Preparation
Content
Data Quality and Preparation > Cleansing data
Last publication date
2024-03-26
If you want to take part of the text (substring), contained in a cell and reuse it elsewhere, you can extract part of the text.

Before you begin

It is recommended to remove unnecessary blank spaces from the text records and to make sure the cells have the same length before proceeding.

Procedure

  1. Select a column from which you want to extract some text.
  2. In the Functions panel, type Extract a value by index and click the result to display the options of the associated function.
  3. Choose the text you want to extract using the options.

    Index represents a number of characters from which or to which the selection applies.

  4. Click the Submit button to extract the selection you made to a new column.

Results

The text corresponding to the selection you made is extracted to a new column.
Tip: This transformation can also be performed by using the Magic fill function.