Pattern Matching

Use this converter step in Robots to extract and manipulate text using patterns. The Pattern Matching step is only available inside a converter group.

Each pattern is based on matches with the built-in $current variable. The Execution enters the first branch from the top with a pattern that matches $current. Branches are evaluated one by one from the top to bottom.

The robot generates a MatchIssue exception in the following cases.

  • If none of the patterns match $current.

  • If any branch evaluates for too long.

Use the Try-Catch step to handle exceptions.

To add a converter step with pattern matching:

  1. In the Robot workflow, add one of the converter group steps and expand the step.

  2. Right-click the flow point inside the converter and select Pattern Matching. See Data Conversion for details.

  3. Click the plus sign to create a branch in the Pattern Matching step and select an option:

    Note that the default is Word Matching.