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.

Regex tool Alteryx

learn79
5 - Atom

Hi everyone, 

 

I am new to Alteryx so this is my first time using Regex. 

 

This is how my text looks like ex: VGONTA : Sti Finance Reporting.

I would like to remove the description and to only show me  this part "VGONTA"

 

Much appreciated in advance. 

6 REPLIES 6
mpennington
11 - Bolide

Assuming it is always followed by a space and semicolon, this should do the trick.  

 

REGEX_Replace([String], '(.*)\s\:.*', '$1')

 

Simple Fix.jpg

Qiu
20 - Arcturus
20 - Arcturus

@learn79 
Another option is to use the Text to Column Tool.

0312-learn79.PNG

AkimasaKajitani
17 - Castor
17 - Castor

Hui @learn79 

 

If you are not used to Alteryx or RegEx yet, I recommend to use RegEx tool because the RegEx tool will assist you.

 

In this case, you can achieve this by leaving the part that meets your requirements, and the RegEx tool will support you with the following interface.

 

AkimasaKajitani_0-1647053418827.png

 

EN6924
10 - Fireball

You can achieve that using Regex - Replace

 

EN6924_0-1647070129341.png

 

learn79
5 - Atom

Thanks a lot to you and everyone who helped. It worked. 

learn79
5 - Atom

This one worked. Thank you so much 

Labels