# Capture all occurrences of text

Source: [https://docs.virtosoftware.com/docs/virto-workflow-automation-web-part/virto-sharepoint-workflow-activities-kit-sharepoint-2010-workflow-platform/text-activities/capture-all-occurrences-of-text/](https://docs.virtosoftware.com/docs/virto-workflow-automation-web-part/virto-sharepoint-workflow-activities-kit-sharepoint-2010-workflow-platform/text-activities/capture-all-occurrences-of-text/)
Product: Virto Workflow Automation Web Part
Updated: 2026-08-12


This activity searches the specified input string for all occurrences of a regular expression and store result in to array.

![Capture all occurrences of text activity matching a regular expression into an array in the SharePoint Workflow Designer](https://img-docs.virtosoftware.com/wp-content/uploads/2024/10/capture_all_occurrences_of_text_1.png)

You can use "Join text" activity to create single string from captured items.

## **SharePoint Workflow Designer Phrase**

Capture all occurrences of this regular expression pattern from this text and store in Variable: variable.

**Parameters**


| Parameter | Description |
|---|---|
| this regularexpression pattern | Regular expression pattern. Look [Regular Expression](http://msdn.microsoft.com/en-us/library/hs600312.aspx) for more information |
| this text | The string to search for a match |
| variable | This activity will place results into an output variable |

