Action group: text
Checks if the text matches the specified regular expression.
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Text | Source text for processing | Robin.String | Yes | |
Pattern | The regular expression pattern to match | Robin.String | Yes | |
Results | ||||
Result | A boolean variable to which the test result will be written. | Robin.Boolean | true |
You can read about the syntax of regular expressions in open sources, e.g. https://regex101.com/.
There is a text variable "Input text" with value = 6. We need to check if the value of the input text variable matches the regular expression: \d . If the condition matches, output the message - "the text matches the regular expression", if it does not match "the text does NOT match the regular expression".
Use the "Check template match", "If", "Show message" actions.
The program robot completed successfully.
The result is displayed in a dialog box.