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

Remove Last Characters

fjlorenzo
8 - Asteroid

Hi,

 

I have the below set of values. How can I remove the "on ROLENAME" and "on TEAMNAME" from each cell.

 

WAM Control - Role - Autosys-JobManager-Team on ROLENAME
WAM Control - Team - Web Dev Corp Finance on TEAMNAME

 

Thank you for your help.

 

Regards,

Florence

11 REPLIES 11
fjlorenzo
8 - Asteroid

Thank you for this info.

ataitt
5 - Atom

This solution worked best for me. I just wanted to add details about the regex expression used in the regex tool in alteryx. You can see the descriptions of most of the expressions used but there is one I could not figure out through Alteryx - (.+) - it can be helpful to understand what each expression is doing so you can easily build your own when needed.

 

The parenthesis () is a capturing group

The period "." captures one or more of any character (except for a newline)

The "+" indicates that it should capture as much as possible while still allowing the overall pattern to match

 

Hope this helps! regex is awesome!

 

 

Labels
Top Solution Authors