Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
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