Extract phone numbers Version 3 (Net)

Action group: Text


Description

Extracts phone numbers from text.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
TextText for analysis.Robin.String
No
Results
ResultCollection of extracted data. If the same entity appears several times in the text, it will be written once in the resulting array.Robin.Collection

Special conditions of use 

If the same entity appears several times in the text, it will be recorded once in the resulting array.

Example of use 

Task

There is a variable "Input text" with the value:

Contact information of the company Robin LLC: +7 495 320-61-23 info@rpa-robin.ru


It is required to extract the phone number from the text and output it to the dialog box.Extract  phone numbers

Solution

Use "Extract phone numbers", "Show message", Get value by index" actions.  

Implementation

  1. Create a variable "Collection" where the result of the "Extract phone numbers" action will be stored. 
  2. Move the "Extract phone numbers" action to the workspace and set its parameters. 

  3. Move the "Get value by index" action to the workspace and set its parameters.

  4. Move the "Show message" action to the workspace and set its parameters. 

  5. Click "Start" in the top panel. 

Result

The program robot completed successfully. 

The required value is displayed in the dialog box.

 

  • Нет меток