Alteryx Regex Tool

A Regular Expression is simply a sequence of characters that forms a search pattern. Instead of looking for a specific word like "Apple", you use RegEx to look for structural patterns, such as "three digits, followed by a dash, followed by four letters."

Here is a quick cheat sheet of common RegEx you will use in Alteryx:

  • \d : Matches any single digit (0-9).
  • \w : Matches any word character (letters, numbers, or underscores).
  • \s : Matches any whitespace (spaces, tabs).
  • + : Matches one or more of the preceding element (e.g., \d+ means "one or more digits").
  • .* : Matches anything and everything (wildcard).
  • () : A capture group. This tells Alteryx, "I care about this specific part of the pattern, isolate it."

It is important in RegEx to put a \ before any special character to identify it e.g. \£ to search for £ signs.

The RegEx tool in Alteryx doesn't just find patterns; it dictates exactly what to do with them. Once you connect the tool to your data stream and select the column you want to target, you must choose one of four Output Methods:

Output Method

What it does

Best used for...

Match

Evaluates the string against your pattern and returns a simple True or False.

Filtering rows. For example, flagging if a column contains a validly formatted email address.

Parse

Extracts specific chunks of text from the string and puts them into brand new columns.

Make sure to enclose the part you want in ().

Isolating strings of text you need from messy data. 

For example after an API call or webscrape in order to isolate the output you need.

Replace

Finds the pattern and swaps it out with different text (or deletes it entirely).

Data cleansing. For example, removing special characters or standardising date formats.

Tokenize

Splits the string into multiple rows or columns every time it hits your defined pattern.

Breaking apart long lists. For example, taking a comma-separated list of names and putting each name on its own row.

Out of these Parse is generally the most useful for searching text. An example of this is after I had web scraped some data on books I wanted to find the book price from with the html.

By using this expression I am searching my field for any structures of text following the form £, (\£), followed by one or digit, (\d+ ), then a full stop, (\.), and again one or more digits. This will search for anything that looks like: £54.62 as an example.

Our price will then be outputted to a brand new Book Price column!

RegEx starts off looking confusing and complicated but with a bit of practice becomes an incredibly convenient and useful tool for data handling.

Author:
Ben Hayward
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2026 The Information Lab