Configuring the components - 7.3

Data extraction

EnrichVersion
Cloud
7.3
EnrichProdName
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
EnrichPlatform
Talend Studio
task
Data Governance > Third-party systems > Data Quality components > Data extraction components
Data Quality and Preparation > Third-party systems > Data Quality components > Data extraction components
Design and Development > Third-party systems > Data Quality components > Data extraction components

Procedure

  1. Double-click the tFileInputDelimited component to open its Basic settings view in the Component tab.
  2. Click the [...] button next to the File name/Stream field to browse to the file where you want to extract information from.
    The input file used in this scenario is called test4. It is a text file that holds three columns: id, email, and age.
    id;email;age
    1;anna@yahoo.net;24
    2;diana@sohu.com;31
    3;fiona@gmail.org;20
    For more information, see tFileInputDelimited.
  3. Click Edit schema to define the data structure of this input file.
  4. Double-click the tExtractRegexFields component to open its Basic settings view.
  5. Select the column to split from the Field to split list: email in this scenario.
  6. Enter the regular expression you want to use to perform data matching in the Regex panel. In this scenario, the regular expression "([a-z]*)@([a-z]*).([a-z]*)" is used to match the three parts of an email address: user name, domain name and TLD name.
    For more information about the regular expression, see http://en.wikipedia.org/wiki/Regular_expression.
  7. Click Edit schema to open the Schema of tExtractRegexFields dialog box, and click the plus button to add five columns for the output schema.
    In this scenario, we want to split the input email column into three columns in the output flow, name, domain, and tld. The two other input columns will be extracted as they are.
  8. Double-click the tLogRow component to open its Component view.
  9. In the Mode area, select Table (print values in cells of a table).