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.
SOLVED

Regex or Text to Column

mustufa2019
8 - Asteroid

I am trying to do a text to column or Regex function to remove certain words from my fields. See below example:

 

Input

Name
Adam Smith
David Warner
Admin 1 Mark Donald
Admin 2 Alan Donald 
Mark Jones
Admin 3 Steve Smith

 

Output: I would like to either remove the "Admin" from my data or have them in separate columns. I shared two output examples that would work for me.

 

Output 1 (remove admin completely)

Name
Adam Smith
David Warner
Mark Donald
Alan Donald 
Mark Jones
Steve Smith

 

Output 2 (text to column)

NameName
 Adam Smith
 David Warner
Admin 1Mark Donald
Admin 2Alan Donald 
 Mark Jones
Admin 3 Steve Smith
10 REPLIES 10
mustufa2019
8 - Asteroid

@afv2688 Thank you so much! this worked!

Labels
Top Solution Authors