Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

Alteryx Designer Desktop Discussions

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

Regex Formula

mcimperman
5 - Atom

I have a cell that contains the following text: Job PSF_AFBIIU. has failed with the completion code 1

I want the regex icon to spit out only: PSF_AFBIIU.

 

In other words I want to parse out "Job" and parse out "has failed with completion code 1".

 

Please note completion code number can differ.

1 REPLY 1
Thableaus
17 - Castor
17 - Castor

Hi @mcimperman 

 

Here's a solution:

 

REGEX_Replace([Field1], "^Job\s(.*?)\shas\sfail.*","$1")

 

Cheers,

Labels
Top Solution Authors