activities
latest
false
Workflow Activities
Last updated Oct 4, 2024

Find Matching Patterns

UiPath.Core.Activities.Matches

Description

Searches an input string for all occurrences of a regular expression and returns all the successful matches. This activity has a RegEx Builder wizard that can be used to configure it, on which you can read more here.

Note: This activity does not work well in workflows using persistence.

Project compatibility

Windows - Legacy | Windows | Cross-platform

Cross-platform configuration

  • Text to search in: - The string to be searched for matches.
  • Pattern - The regular expression pattern to match.
Advanced options

Others

  • Pattern Options - A bitwise combination of the enumeration values that specify options for matching. The available options are IgnoreCase, Multiline, ExplicitCapture, Compiled, Singeline, IgnorePatternWhitespace, RightToLeft, ECMAScript, and CultureInvariant.

Output

  • Result - Reference to the collection of found matches.
  • First Match - Outputs the first match as String.

Windows - Legacy, Windows configuration

Designer panel
  • Configure Regular Expression... - Opens the RegEx Builder wizard where you can specify the regular expression pattern to be matched.
Properties panel
Common
  • DisplayName - The display name of the activity.
Input
  • Pattern - The regular expression pattern to match.
  • Text to search in: - The string to be searched for matches.
  • Pattern options - A bitwise combination of the enumeration values that specify options for matching.
Misc
  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
  • Result - Reference to the collection of found matches.

Output

  • First Match - Outputs the first match as String.

Example of using the Matches activity

Here you can see how the Matches activity is used in an example that incorporates multiple activities.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.