Excel: Find by pattern (regex)

Find a value in a cell using regex.

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

FieldRequiredWhat it does
File pathNoEnter the file path, or use a variable such as {folders::desktop::path}\file.xlsx. Leave blank to use the workbook an earlier step opened.
CellYesThe cell to read, e.g. A1, or a variable such as {cell}.
SheetYesName of the sheet in the Excel file. Supports wildcards: * matches any characters.
VariableYesName of the variable to store the matched text in.
From columnYesThe source column to extract values from
To columnYesThe destination column to write extracted values to
PatternNoThe 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 matchNoWhich 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

ErrorDescription
File not openThe Excel file must be open
Sheet not foundThe specified sheet does not exist
Column not foundThe 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

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.