Extract phone numbers Version 1 (Net)

Group "ROBIN AI", subgroup "NER (PREFERENTUM)"


Description

The action returns phone numbers from text

Action icon

Parameters and their settings

Property

Description

Type

Filling example
Mandatory field
Parameters
Text

Text for analysis

String

Contacts:
+7 (495) 033-04-03
info@slsoft.ru
115114, Moscow, Derbenevskaya Embankment, 7c22, entrance B, floor 3

Yes
Results
Result
Collection of extracted dataCollection


Special conditions of use

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

Example of use

Task

There is a text:

"Contact details of OOO Robin: +7 495 320-61-23 info@rpa-robin.ru."

You need to extract a phone number from the text and display it in a dialog box.

Solution

Use the "Extract phone numbers", "Message" and "Get value by index" actions. 

Implementation

  1. Create a variable "Collection" into which the result of the "Extract phone numbers" action will be written.


  2. Drag the "Extract phone numbers" action to the workspace. 


  3. Fill in the "Text" parameter of the "Extract phone numbers" action.
    Add the "Collection" variable to the result.


  4. Drag the "Get value by index" action to the workspace.


  5. Set the parameters of the "Get value by index" action.


  6. Drag the "Message" action to the workspace.


  7. Set the parameters of the "Message" action.
    In the "Message text" field add the result of the "Get value by index" action.


  8. Click on the "Start" button in the top panel.

Result

The program robot has completed successfully. The required value is displayed in the dialog box.

  • Нет меток