Alteryx Designer Desktop Discussions

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

REGEX PARSE NUMBER

dunkindonut7777
8 - Asteroid

Hi I have a data here that I want to parse some of the field.

I want to separate the values under the number field. Please refer to Desired Output field.

Number (Raw)Desired Output
ID 48424 XYZ DOCTORS HOSPITAL (CLINICA HILARIO), INC. (Posted by CORLITO NAVARRO on 10 Aug 2021) Null
AccountNull
Accounts Receivable Trade (12101)12101
Accounts Receivable Trade (12101)12101
ID 42319 ST. ELIZABETH HOSPITAL, INC. (Posted by JEREMY LENIETH GADE on 20 Apr 2021) Null
AccountNull
Accounts Receivable Trade (12101)12101
REVENUE - Reagents Reselling - SEHI (40207)40207
VAT Payable (2520)2520

 

13 REPLIES 13
DataNath
17 - Castor

Hey @dunkindonut7777, the following should work, unless there’s any chance of wildly deviating from the examples provided:

 

.+\((\d+\))

DataNath
17 - Castor

Sorry, second escape character was before the wrong bracket. Should be:

 

.+\((\d+)\)

dunkindonut7777
8 - Asteroid

Hi thank you for this can you parse also this one?

 

Code (Raw)Desired Output
ID 48424 XYZ DOCTORS HOSPITAL (CLINICA HILARIO), INC. (Posted by CORLITO NAVARRO on 10 Aug 2021) 48424
AccountNull
Accounts Receivable Trade (12101)Null
Accounts Receivable Trade (12101)Null
ID 42319 ST. ELIZABETH HOSPITAL, INC. (Posted by JEREMY LENIETH GADE on 20 Apr 2021) 42319
AccountNull
Accounts Receivable Trade (12101)Null
REVENUE - Reagents Reselling - SEHI (40207)Null
VAT Payable (2520)Null
DataNath
17 - Castor

Have replied to your other topic @dunkindonut7777 - the following should be fine:

 

ID\s(\w+)

dunkindonut7777
8 - Asteroid

Hi Thank you for your help @DataNath. I have also to parse these two fields can you help me? Please refer to the desired output fields. Thankyou

 

 

(Raw)Desired Output (Date)Desired Output (NAME)
ID 48424 XYZ DOCTORS HOSPITAL (CLINICA HILARIO), INC. (Posted by CORLITO NAVARRO on 10 Aug 2021) 10-Aug-21CORLITO NAVARRO
AccountNull 
Accounts Receivable Trade (12101)Null 
Accounts Receivable Trade (12101)Null 
ID 42319 ST. ELIZABETH HOSPITAL, INC. (Posted by JEREMY LENIETH GADE on 20 Apr 2021) 10-Aug-21JEREMY LENIETH GADE
AccountNull 
Accounts Receivable Trade (12101)Null 
REVENUE - Reagents Reselling - SEHI (40207)Null 
VAT Payable (2520)Null 
dunkindonut7777
8 - Asteroid

I want the expression only

DataNath
17 - Castor

@dunkindonut7777 how do you get on with the following? Should be fine as long as format doesn’t change drastically:

 

Posted\sby\s([A-Z\s]+)\s

dunkindonut7777
8 - Asteroid

How about the date? Can you give me the expression also?

dunkindonut7777
8 - Asteroid

Hi @DataNath can you parse the date fields? I have a difficulty separating it

 

(Raw)Desired Output (Date)
ID 48424 XYZ DOCTORS HOSPITAL (CLINICA HILARIO), INC. (Posted by CORLITO NAVARRO on 10 Aug 2021) 10-Aug-21
AccountNull
Accounts Receivable Trade (12101)Null
Accounts Receivable Trade (12101)Null
ID 42319 ST. ELIZABETH HOSPITAL, INC. (Posted by JEREMY LENIETH GADE on 20 Apr 2021) 10-Aug-21
AccountNull
Accounts Receivable Trade (12101)Null
REVENUE - Reagents Reselling - SEHI (40207)Null
VAT Payable (2520)Null
Labels