Alteryx Designer Desktop Discussions

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

Regex Parsing Help

JP1221
5 - Atom

Hi,

 

I have a quick question regarding Regex - Parse function.

I have a set of data where there's two parts - there's a mixture of numbers and letters before a period for the first part, and the second half of the data is anything after the period.

 

E.g.

 

1234_ABC.BBBB

1234ABC.ABC<A>

ABC1234.CDE

 

I would like to parse the data into two columns where the first column is all the data before the period and the second column is the data after the period.

 

Thank you!

3 REPLIES 3
Bob_Blackey
11 - Bolide

Hi JP,

 

Based on your data the initial text can be letters, numbers or I see an '_'

 

I would use the Regex Tool and Parse

 

(.*)\.(.*)

 

That would read any data until it found a '.' and then also read any data after the '.'

 

Cheers,

Bob

 

JP1221
5 - Atom

It seems to work! thank you so much!

Bob_Blackey
11 - Bolide

No worries, as a followup - if you wanted to limit it to  a-z, A-Z, 0-9 or _

 

you could replace the * with \w

 

Bob

 

Labels