In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Subset of a string between characters

RsRoel
6 - Meteoroid

I'm looking at creating a subset of a string that falls between certain characters: '[' and ']' in this case. I played around with Regex but couldn't figure it out up till now, as in certain cases there are more subsets within a single field.

 

For example:

 

InputOutput1Output2Output3
[abc]abc  
[abc]+[def]abcdef 
Substring([ghi], 3)+[jkl]+min([mno])ghijklmno

 

Anyone an idea?

 

Thanks

2 REPLIES 2
BenMoss
ACE Emeritus
ACE Emeritus

When I cannot figure something out with Regex I try and think about how I would solve the problem without the Regex tool.

 

I've provided a solution here which gets your answer using the text to columns.

 

Ben

RsRoel
6 - Meteoroid

Great! Neat solution. Thanks Ben.

Labels
Top Solution Authors