Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Extracting a text string of variable length

DKMI
7 - Meteor

I have data which looks like this:

 

Big Data|Business|Business Analysis and Strategy|Business Software and Tools|Continuing Education (CEU)|Core Capability Data Analytics|Core Capability Digitalisation|CPE|Data Analysis|Data Analytics|Data Science|Data Science Careers|NASBA Continuing Professional Education (CPE)|Technology

 

Ultimately, I would like to pull out the characters between the first 'Core Capability' and the subsequent '|'. ie. 'Analytics'.

 

I have been trying .*?CORE CAPABILITY(.*?)/| (and variants thereof)

 

Any help appreciated

 

2 REPLIES 2
MarqueeCrew
20 - Arcturus
20 - Arcturus

@DKMI 

 

You were CLOSE...

 

regex_replace([Field1],".*?Core Capability (.*?)\|.*",'$1')

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
DKMI
7 - Meteor

You rock!

 

Have an awesome weekend!

Labels