1b.app
Link copied -

Check for the presence of two words in the field of the additional field of the process (the presence of a space)

Good afternoon. It is necessary to check the Recipient field (additional process field - String) for the presence of two words in it (possibly for a space). Please let me know if there is any way to accomplish this task?
Original question is available on version: ru

Answers:

You can "get out" as follows - there is an action "Check field in progress and notify", in which we can write to compare that the desired field is equal to the value ^(\w+)\s(\w+$)%
The action with a percentage at the end implies a partial search by regular expression (occurrence of a word) - so we will substitute the regular expression that the string consists of 2 words.
02.07.2021, 16:42
Original comment available on version: ru

Maxim, thanks for the idea, the option fits perfectly
I did not find the action , replaced it with calculate and write the value when the conditions are met. But please also tell me what value to compare with if the string is three words (last name, first name, patronymic)? Thanks in advance
06.07.2021, 15:09
Original comment available on version: ru

Here is a service for checking regular expressions https://regex101.com/
You can experiment with it - it will be something like ^(\w+)\s+(\w+)\s+(\w+) (and at the end for the action you need to add %
06.07.2021, 15:20
Original comment available on version: ru


Tyndyk Maxim Vadimovich
OneBox production wrote:
Here is a service for checking regular expressions https://regex101.com/
You can experiment with it - it will be something like ^(\w+)\s+(\w+)\s+(\w+) (and at the end for the action you need to add %

Maxim, thanks twice, I'll try
06.07.2021, 15:35
Original comment available on version: ru

Maxim, please check the operation of the action, since the regular expression you suggested earlier worked, but now the check does not work
I check on the process https://crm.ohrana.ua/admin/customorder/zakaz-klienta/1174573/edit/ , the field here is , the action is configured in the procedure http://joxi.ru/D2PnleQHBvbPLr, but the result is
Moreover, if I put the regular expression [AZ]{1}[az]{1,14} [AZ]{1}[az]{1,14}$ and the field value http://joxi.ru/DrlWGzVuGe1gWA, everything is fine
if I change the alphabet to Russian to [A-Z]{1}[a-z]{1,14} [A-Z]{1}[a-z]{1,14}$ , again it does not let
All checks with these regular expressions are configured here https://crm.ohrana.ua/admin/shop/workflow/16/procedure/624/?status=0
please check the settings are curves, or maybe something with the action? Thanks
15.07.2021, 13:46
Original comment available on version: ru

Added a modifier to the regular expression check to correctly perceive the Cyrillic alphabet
15.07.2021, 14:18
Original comment available on version: ru

Maxim, good afternoon
now it works fine with this option , but there is a problem with Ukrainian letters. If I add the regular expression - Ukrainian letters do not skip anyway
29.07.2021, 14:47
Original comment available on version: ru

Here is a service https://regex101.com/ where you can review and test your regular expressions yourself.
29.07.2021, 14:50
Original comment available on version: ru

Maxim, I most likely put it wrong, the specified regular expression was also checked on the service that you suggested as well, but boxing does not let it through. But the question is already closed, I replaced it with another option, and now the check works fine and Ukrainian letters are also skipped. Thank you for the idea, close
30.07.2021, 14:32
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment