Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Parse Regular Expression Not Working as Expected

taliatest
6 - Meteoroid

Hi Everyone,

 

Can anyone advise me on why this regular expression is not working as expected for the two department values highlighted in yellow? It is working for all other departments. Ideally, these two would follow suit and break everything out into three separate columns (examples seen on records 679-683 in image attached)

 

Image attached below

 

 

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @taliatest 

 

Can you share the data before the regex tool and regex. So that we see how the other data looks and help you out.

apathetichell
19 - Altair

can you also copy and paste that formula in the regex tool -> the short is that line is not conforming to your formula - so regex is saying there isn't any way to parse it to get it to fit your schema. I can't make out why - and @atcodedog05 - who should be sleeping at 2:45 a.m. - also can't make out why.

atcodedog05
22 - Nova
22 - Nova

@apathetichell 

Hahaha 😂

 

Was up on some work 😅

flying008
15 - Aurora

Hi, @taliatest 

 

If possible, please paste the 3 lines of text where you resolved the exception here. I suspect that the spaces and parentheses here may not be the standard characters you see, so the parsing failed.

 

录制_2024_10_30_09_00_52_478.gif

 

DepartmentRegExOut1RegExOut2RegExOut3
Unum Finance Enablement (Alex Anderson - NO Chargebacks / 0846)Unum Finance EnablementAlex Anderson - NO Chargebacks846
Unum Regulatory Affairs Legal (Matt Fuss / 9325)Unum Regulatory Affairs LegalMatt Fuss9325
No department   
TL AI Change (Nikki Hensley / 5005)TL AI ChangeNikki Hensley5005
EN6924
10 - Fireball

(.+)\s\((.+\/)\s(\d+).+ 

 

- Also working.

Labels