# Capture text

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


This activity Searches the specified input string for an occurrence of the regular expression and stores result in to text variable.

![Capture text activity matching a regular expression and storing the result in a variable in the Workflow Designer](https://img-docs.virtosoftware.com/wp-content/uploads/2024/10/capture_text_1.png)

## **SharePoint Workflow Designer Phrase**

Capture 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 result into an output variable |

