Defining the parsing parameters of your Regex file - 7.1

Talend Data Management Platform Studio User Guide

author
Talend Documentation Team
EnrichVersion
7.1
EnrichProdName
Talend Data Management Platform
task
Design and Development
EnrichPlatform
Talend Studio

About this task

On this view, you define the file parsing parameters so that the file schema can be properly retrieved.

Procedure

  1. Set the Field and Row separators in the File Settings area.
    • If needed, change the figures in the Field Separator field to specify the column lengths precisely.

    • If the row separator of your file is not the standard EOL, select Custom String from the Row Separator list and specify the character string in the Corresponding Character field.

  2. In the Regular Expression settings panel, enter the regular expression to be used to delimit the file.
    Warning:

    Make sure to include the Regex code in single or double quotes accordingly.

  3. If your file has any header rows to be excluded from the data content, select the Header check box in the Rows To Skip area and define the number of rows to be ignored in the corresponding field. Also, if you know that the file contains footer information, select the Footer check box and set the number of rows to be ignored.
  4. The Limit of Rows allows you to restrict the extend of the file being parsed. If needed, select the Limit check box and set or select the desired number of rows.
  5. If the file contains column labels, select the Set heading row as column names check box to transform the first parsed row to labels for schema columns. Note that the number of header rows to be skipped is then incremented by 1.
  6. Then click Refresh preview to take the changes into account. The button changes to Stop until the preview is refreshed.
  7. Click Next to proceed to the next view where you can check and customize the generated Regex File schema.