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 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
17 - Castor

@dunkindonut7777 give this a whirl:

 

(\d{2}\s[a-zA-Z]{3}\s\d{4})

grazitti_sapna
17 - Castor

@dunkindonut7777  try this (\d+\s\w+\s\d+)

Sapna Gupta
DataNath
17 - Castor
17 - Castor

If you then want to format your date as it appears in your example output then you can use the following:

 

DataNath_0-1652862067252.png

 

Or you can do the whole thing in one, like so (workbook attached):

 

DataNath_0-1652862531743.png

 

 

grazitti_sapna
17 - Castor

@dunkindonut7777 , to fetch the names.

 

(?:Posted by\s)([A-Z\s]+)(?:on)

 

grazitti_sapna_0-1652863211071.png

 

Thanks!

 

Sapna Gupta
Labels
Top Solution Authors