Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Regular Expression

Angiebels
5 - Atom

Hi All,

 

I'm trying to separate this data below in two columns which the second column is the existing one in the file.

 

Input:

Column1

ADCOUNCILAdCouncil

 

Output:

Column 1

ADCOUNCIL

 

Column 2 (existing column within file)

AdCouncil

 

I'm not sure what pattern to use in RegEx as there is no specific separator for that one.

 

Appreciate your help on this.

 

Thanks!

5 REPLIES 5
Qiu
21 - Polaris
21 - Polaris

@Angiebels 
We can use a normal Replace function, if I understand your intention correctly.
We can also use a RegReplace, if you insist 😁

0816-Angiebels.PNG

Angiebels
5 - Atom

Hi @Qiu

 

Thanks for the quick response.

 

The input should be ADCOUNCILAdCouncil and will be separated in two the first word (ADCOUNCIL)  to replace the originate column then the AdCouncil to the next column.

 

Angiebels_0-1660625346513.png

 

Qiu
21 - Polaris
21 - Polaris

@Angiebels 
Like this?

0816-Angiebels-1.PNG

Angiebels
5 - Atom

Thanks @Qui

 

That's exactly what I'm looking for.

 

Appreciate your help!!!

 

Best,

Angie

Qiu
21 - Polaris
21 - Polaris

@Angiebels 
Glad I can help. 😁

Labels