Identifying if your data matches a pattern

Talend Data Preparation Quick Examples

author
Talend Documentation Team
EnrichVersion
6.5
2.3
EnrichProdName
Talend Data Services Platform
Talend Big Data
Talend Real-Time Big Data Platform
Talend Data Integration
Talend Data Fabric
Talend MDM Platform
Talend Big Data Platform
Talend ESB
Talend Data Management Platform
task
Data Quality and Preparation > Cleansing data
EnrichPlatform
Talend Data Preparation

If you want to identify whether there are mobile phone numbers among the landline numbers, you can use the Matches Pattern function.

Because the French mobile phone numbers start with 06, you are going to search for this pattern in the Phone column.

Procedure

  1. Select the column on which you want to apply the pattern, Phone in this example.
  2. In the functions panel, type Matches Pattern and click the result to open the options for the associated function.
  3. Configure the function as follows.
  4. Click the Submit button to apply the function.

    A new column is created, with the value true if the pattern matches and false if it does not

Results

The information is stored in a new column and you can now apply a filter to isolate the mobile phone numbers present in the Phone column.