Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
ALTER.NEXT:

Join us on Dec 2 for a half-day virtual analytics + data science event!
US & CA customers only

SAVE YOUR SPOT
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!
SOLVED

Subset of a string between characters

Highlighted
Alteryx Partner

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

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

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

Highlighted
Alteryx Partner

Great! Neat solution. Thanks Ben.

Labels