Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Extract phone numbers Version 1 (Net)

Группа Group "ROBIN AI", подгруппа subgroup "NER (PREFERENTUM)"

...

Description

The action returns phone numbers from text

...

Action icon

...

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.
    Image Added

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

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

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

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

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

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

  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

Результат

Программный робот отработал успешно. В диалоговое окно выведено требуемое значение.