Analytics How To: Using Regex in Funnel.io to Split a Column by a Delimiter

by

Article
3–5 minutes

read

Since this article was published, Funnel has added text splitting functionality.

The REQ Analytics Team knows how complex and complicated managing marketing data can be. That’s why we invest in many solutions that assist our data management efforts and bring value to our clients. One of the solutions we use in our reporting automation process is Funnel.io, a tool that helps transform marketing data into automated marketing reports. Let’s dive into how to split a column by delimiter in Funnel.io.

A delimiter is a special character that indicates the barrier between separate groups of text or numbers. In this example, the delimiter is a hyphen.

Hyphen Delimiter Example

Many users understand the usefulness of Excel’s “Split Text by a Delimiter” function, but when trying to recreate the effect in Funnel.io, users can run into issues. In Excel, users can select the column they wish to split, click on the “data” tab, then “Text to Columns”, “Delimited”, then specify the delimiter.

Split Column Using a Delimiter

This action is very helpful because one dimension has now become three separate dimensions that can better tell the data’s story. Currently, Funnel.io does not have a “Split Text by a Delimiter” function like Excel, but regex can be used to solve this issue.

Regex stands for regular expression, which is a language that uses characters to describe a search pattern. In the first example a simple regex will be used with Funnel.io to separate one dimension into three different capture groups. A user can then use those to make their new dimensions. In the second example, the same regex will be used alongside a few more rules in Funnel.io to account for inconsistencies in data.

Example 1:

Below is the data that is being imported into Funnel.io using a google sheet connection.

Funnel.io Data Imported into Google Sheets

The goal in this example is to split the campaign column into three columns: platform, campaign name, and campaign type. The regex that will be used in this example is the following: ([^-]+)-([^-]+)-([^-]+). If your delimiter is a different character, let say the percentage sign, the regex becomes ([^%]+)%([^%]+)%([^%]+).

In order to make the platform dimension in Funnel.io select “Dimensions” under “Data Transformation”, then click “+ Custom Dimension” in the top right corner. The rule should look like the screenshot below so that “Campaign matches regex ([^-]+)-([^-]+)-([^-]+) regex match capture group 1”. The regex included in this rule includes three capture groups that look like “([^-]+)” separated by the delimiter. Capture group 1 is chosen because the rule needs to capture the leftmost segment which is the platform.

Regex Capture Group Example

If the steps above were done correctly, the data explorer view should look like the screenshot below.

Regex Capture Group Example in Data Explorer

In order to create the campaign name and campaign type dimensions, repeat the same process as shown when the platform dimension was made, but instead of “capture group 1”, use “capture group 2” for the campaign name and “capture group 3” for the campaign type. The final product should look like the data explorer below.

Final Capture Group Data in Data Studio

Example 2:

Below is the data that is being imported into Funnel.io using a google sheet connection.

Sample Funnel.io Data

The goal in this example is to split the campaign column into platform, campaign name, campaign type, and ad type. The challenge when using real data is that dimensions are not always uniform. In this example, there are some cells with four capture groups and some with three. Additionally, Cell B4 and B5 don’t have an ad type, and cell B6 does not have a campaign type. The rules below show one way to approach these problems.

The rules for the platform dimension are similar to the first example, but these rules account for the three and four capture group formats.

Regex Platform Dimensions

Campaign name uses the same rule as platform, but uses capture group 2.

Regex Capture Group Campaign Format

Campaign type uses a similar rule, but in order to ensure the rule does not capture the ad type that is in cell B6 of the underlying data, there must be an additional rule that says that “Campaign does not contain Variation” in the three capture group rule.

Regex Campaign Using the Same Rule

Ad type uses a similar rule to campaign type, but in order to ensure the rule does not capture the campaign types that are in cells B4 and B5 of the underlying data, there must be an additional rule that says that “Campaign contains Variation” in the three capture group rule.

Regex Campaign With Variation

The final product should look like the data explorer below.

Regex Final Dashboard

Splitting text by a delimiter is a powerful tool that can help clean messy strings into usable dimensions. Using regex and other rules, Funnel.io users can also clean their dimensions and provide greater clarity to their data. Even in example two, when there is an uneven number of capture groups and missing dimensions, users can get creative in order to organize and clean their data.

The CMO Who Gave Up Sales Pitches to Build Real Relationships

The CMO Who Gave Up Sales Pitches to Build Real Relationships

Chatting with Nathan Burke of 7AI on why relationship-building outperforms traditional B2B marketing Nathan Burke is intentionally doing less of what most B2B marketers are taught to do. As CMO of 7AI, he’s opting out of the usual B2B playbook, the awkward steak dinners with a pitch attached, the conference badge scanning arms race, and…

How UVEye’s Unicorn Drives Trade Show Excitement

How UVEye’s Unicorn Drives Trade Show Excitement

Trade shows are crowded. Competitive. Expensive. Every booth promises innovation. Every brand is trying to stand out to the sea of overwhelmed and tired attendees. For AI-driven vehicle inspection company UVEye, standing out meant not just thinking creatively. It meant creating a unicorn. UVEye calls its technology an “MRI for cars.” It provides AI-driven technology that…

How WalkMe’s Melanie Pasch Humanized the Enterprise AI Adoption Problem with “AI Shame”

How WalkMe’s Melanie Pasch Humanized the Enterprise AI Adoption Problem with “AI Shame”

Ask an executive how many software applications their company uses, and they’ll probably guess 30 or 40. The average organization, according to research by digital adoption platform (DAP) pioneer WalkMe, actually runs about 625 applications. This staggering digital ecosystem is where most tech investments stall, not because the technology is poor, but because employees can’t…

From $200M ARR to Pre-Seed: How Karina Lawrence Rewrites the Marketing Playbook for Early-Stage Startups

From $200M ARR to Pre-Seed: How Karina Lawrence Rewrites the Marketing Playbook for Early-Stage Startups

When you’ve helped scale a developer-focused company from roughly $200M to nearly $250M in ARR, you know what “grown-up” marketing looks like. Today, though, Karina Lawrence is back at the very beginning—leading marketing at Macrovo, a pre-seed, ~10-person startup that blends AI and human expertise to help financial institutions make faster, smarter decisions. It’s a…

B2B Videos You Actually Want to Watch? Meet Jared Evers of Medallia.

B2B Videos You Actually Want to Watch? Meet Jared Evers of Medallia.

For Jared Evers and his small and scrappy content team at Medallia – provider of customer and experience software – if you can’t do something stellar, there’s no sense in doing it at all. For proof, check out how the team is pushing the boundaries of corporate videos with Experience Now, Medallia’s own streaming platform.…

How HII’s Jaime Orlando Builds Connection, Culture, and Momentum Inside a Legacy Brand

How HII’s Jaime Orlando Builds Connection, Culture, and Momentum Inside a Legacy Brand

Q: Jaime, for those who might not know HII Mission Technologies, can you give us a quick overview of what your team does? Jaime Orlando Absolutely. HII as a company has an incredible legacy. It’s America’s largest shipbuilder, with more than 135 years of experience. About 75% of HII’s business comes from shipbuilding at our…

How Jenifer Kern Helped Qu Redefine Restaurant Tech

How Jenifer Kern Helped Qu Redefine Restaurant Tech

On the Radar sat down with Jenifer Kern, CMO of Qu, to talk about how she helped create a new category in restaurant technology, why maintaining industry focus has been key to business growth, and what it means to elevate marketing in a longstanding industry undergoing rapid transformation. Q: When you joined Qu, what did the industry…

From The New York Times to Muck Rack: Linda Zebian on Knowing What’s Newsworthy

From The New York Times to Muck Rack: Linda Zebian on Knowing What’s Newsworthy

Linda Zebian knows how to tell a good story. As VP of Communications at Muck Rack, she leads a lean, high-impact team responsible for brand, content, product marketing, internal comms, and more. Her approach is grounded in the instincts she developed over 10 years in corporate comms at The New York Times, where she learned…

How Sam Baldridge is Turning Culture Into a Competitive Edge

How Sam Baldridge is Turning Culture Into a Competitive Edge

At Applied Systems, Sam Baldridge wears a lot of hats. Officially, she’s the Senior Communications and Culture Specialist. Unofficially, she might be better known as the “Vibes Director.” Sam is part of a small but mighty three-person team tasked with building internal connection, shaping employer branding, and turning culture into a competitive advantage.  We caught…

How Kristina McConnell Uses Precision and AI to Power Account-Based Marketing at H1

How Kristina McConnell Uses Precision and AI to Power Account-Based Marketing at H1

A Director of Marketing at H1, Kristina McConnell brings structure, creativity, and a test-and-learn mindset to every campaign she touches. With a small team and a niche audience in the pharma space, she has helped transform H1’s account-based marketing (ABM) approach into a tightly aligned, data-driven engine. Her team goes far beyond basic alignment with sales.…

CONTACT US
CONTACT US

WE HELP BRANDS OWN WHAT’S NEXT

Our integrated PR and digital campaigns build reputations, drive growth, and shape conversations that define markets. Let’s talk about how we can help you do the same.