Help Centre › Building Processes
Find a value in a cell using regex.
Runs on: macOS and Windows only.
Add it to a process
In the process designer, open the Add step tab. Find Find by pattern (regex) under Excel › Search & Filter, or type its name in the search box, and drag it onto the canvas.
Fields
| Field | Required | What it does |
|---|---|---|
| File path | No | Enter the file path, or use a variable such as {folders::desktop::path}\file.xlsx. Leave blank to use the workbook an earlier step opened. |
| Cell | Yes | The cell to read, e.g. A1, or a variable such as {cell}. |
| Sheet | Yes | Name of the sheet in the Excel file. Supports wildcards: * matches any characters. |
| Variable | Yes | Name of the variable to store the matched text in. |
| From column | Yes | The source column to extract values from |
| To column | Yes | The destination column to write extracted values to |
| Pattern | No | The regex pattern to use for extraction Choices: Address, Data transfer speed, Date, E-mail address, IP address, Order number, Time, URL, ZA cellular number, ZA ID number, ZAR amount, Other. |
| Part of the match | No | Which bracketed part of the pattern to return. 0 returns the whole match, 1 the first bracketed part. Default: 0. |
What it gives back
{variable}
See all Excel steps.
Errors
| Error | Description |
|---|---|
| File not open | The Excel file must be open |
| Sheet not found | The specified sheet does not exist |
| Column not found | The source column does not exist |
Tips
- Extracts data matching the regex pattern from one column to another
- Available patterns: Address, Date, E-mail, IP, Order number, Time, URL, and more