In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

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
Top Solution Authors