Alteryx Designer Desktop Discussions

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

Regex to split text

Hi, 

 

I want to split a text box into two columns:  Deploy Active Directory to Ireland in 2023

 

COLUMN 1: Deploy Active Directory to

COLUMN 2: Ireland in 2023

 

 

How do I configure the Regex tool? Thanks in advance.

3 REPLIES 3
Felipe_Ribeir0
16 - Nebula

Hi @Stephaniesinclair 

 

One way of doing this

(.*\sto\s)(.*)

 

Felipe_Ribeir0_0-1669207701510.png

 

ShankerV
17 - Castor

Hi @Stephaniesinclair 

 

One way of doing this,

 

Use Regex tool : (.+\sto)\s(.+)

 

By this way, we can achieve eliminating the trailing whitespace at the end of column1.

 

ShankerV_1-1669209744725.png

 

 

Many thanks

Shanker V

 

 

Fantastic addition! Thanks for sharing. Regex has been challenging for me to understand, this helps.

Labels