Regular Expression

Add action

Use context menu or action toolbox to add Regular Expression action to workflow scheme.

  • Click on the area with (Edit) icon on the scheme and:
  • Select category Operations;
  • Choose Regular Expression.
  • In action toolbox:
  • Select category Operations;
  • Drag and drop Regular Expression action to the area with (Edit) icon on the workflow scheme.

Configure action

Open action configuration dialog to edit action properties:

  • Open action context menu on the scheme and choose Edit;
  • Or double click the action on the scheme.

Action properties

Use configuration dialog to edit action properties:

Property Description
Title Defines action title.
By default the title is action type name.
Input Input string to which regular expression will be applied.
Lookups are available for this property.
Operation Operation to apply to text:

  • Replace. Replaces text that matches the pattern with replacing text;
  • Check match. Returns depending on the result of matching the text to the pattern;
  • Split. Splits the input text using the pattern as delimiter. Input is the collection of delimited items;
  • Extract. Searches the input text for matches to pattern. All found matches will be stored in result dictionary.
Pattern Defines pattern. Use Microsoft.NET syntax for pattern.
Lookups are available for this property.
Ignore case Ignore case when matching the text.
Replacement Replacement text for Replace operand.
Lookups are available for this property.
Output Variable to store the result.

Examples

Split text using “;” as a pattern and store result in collection:

Check match of an input string to a pattern and store result in boolean variable: