Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Regex Parse

elclark
8 - Asteroid

Hello - I'm trying to parse these titles, the names are inconsistent and the year gets updated every year. Essentially I want to parse it out so all I have is the full name of the training and remove everything from before the colon and the year. Here are examples. Thanks.

 

Current TitleDesired Output
Company Name: Training 11 Training Name 2022Training 11 Training Name
Company Name: Training 12 2022Training 12
2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@elclark 
I take the string after the column and the 4 digit number, and hope this is correct.

0624-elclark.PNG

Luke_C
17 - Castor
17 - Castor

Hi @elclark 

 

To offer a non-regex solution: 

Substring + Findstring: Get characters after the colon

Replace/Get Word/Count Words: Remove the year from the end

Capture.PNG

Labels
Top Solution Authors