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

  1. Create a String variable and name it sample. For the Default value, write "This is a sample string.".
  2. Create a Boolean variable and name it match.
  3. Add an Is Match activity inside the initial Sequence.
  4. In the Is Match Result field under Attributes, add the match variable.
  5. In the Is Match Input field, add the sample variable.
  6. In the Is Match Pattern field, write "sample string".
  7. Under the Is Match activity, add a Write Line activity.
  8. 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: