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

regex parse help

556891a
5 - Atom

Hi everyone,

 

I am confusing how to parse the code like JAP1080-19M to JAP,1080,19,M.(to four-column)

Thanks!

 

 

4 REPLIES 4
ggruccio
ACE Emeritus
ACE Emeritus

Hi @556891a,

 

I'm not the most efficient Regex coder, so I often divide it into small tasks...using the Regex tool multiple times and pulling out expressions using "Tokenize" where patterns match.

 

ggruccio_0-1587405713178.png

See the attached workflow below, which will generate this output.

 

ggruccio_0-1587405955135.png

 

 

 

 

556891a
5 - Atom

Thank you for the reply! Do you know how to remove the dash(-)?

ggruccio
ACE Emeritus
ACE Emeritus

Hi @556891a ,

 

Yes, was an oversight on my part.  I removed a period in front of the \d\d that I was using to capture that hypen.  Should be all good now.   Please see the attached revised workflow.

 

ggruccio_0-1587407249901.png

 

556891a
5 - Atom

Thanks for your help!

Labels