Description
Indicates whether a specified regular expression finds a match in the specified input string using the specified matching options.
Attributes
Input
Input - The string to be searched for matches.
Pattern - The regular expression pattern to match.
Regex Option - A bitwise combination of the enumeration values that specify options for matching.
Common
ContinueOnError - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.
Misc
DisplayName - Renames the activity.
Result - A boolean variable that would be true if the regular expression finds a match. The value would be false if it does not find a match.
Example
- Create a String variable and name it sample. For the Default value, write "This is a sample string.".
- Create a Boolean variable and name it match.
- Add an Is Match activity inside the initial Sequence.
- In the Is Match Result field under Attributes, add the match variable.
- In the Is Match Input field, add the sample variable.
- In the Is Match Pattern field, write "sample string".
- Under the Is Match activity, add a Write Line activity.
- In the Write Line Text field, write match.ToString.
The use case should look as the following screenshot:
With the specified Input and Pattern, this should be the output in the Output panel: