Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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