Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Remove everything after last space

Sshasnk
8 - Asteroid

I have a column and I have to remove everything which comes after the last space. below is the example

Input:

 

name
Bill, jake USA
Bob P, Jacob LN

Smit row, emily TKY

Right, IAN Uk
Billy , Bob IND

 

Output:

 

name
Bill, jake 
Bob P, Jacob 

Smit row, emily 

Right, IAN 
Billy , Bob 

 

Removed everything after last space

1 REPLY 1
AngelosPachis
16 - Nebula

Hi @Sshasnk ,

 

You can try parsing with regex and using the expression

 

(.*)\s

 

 

AngelosPachis_0-1613730437114.png

 

Hope that helps,

 

Angelos

 

Labels