Skip to main content Skip to complementary content
Close announcements banner

Configuring the 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).

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!