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

Help with Parsing using RegEx

HongAlt
6 - Meteoroid

Date.JPG

Date 2.JPG

 

Hello, thank you in advance for assisting.

 

What would be the expression to use with the RegEx function to generate the results shown in the picture (DateDay/DateMonthYear/Date Hour) attached from the data in the EmailDate Column,

 

I Attached the yxzp if that is needed. 

3 REPLIES 3

Hi @HongAlt 

 

This is an option:

(\w+),\s\d+\s(\w+\s\d+)\s(\d+):.*

 

christine_assaad_1-1668550965419.png

 

Hope that helps. Cheers!

HongAlt
6 - Meteoroid

Thank You so much!

ShankerV
17 - Castor

Hi @HongAlt 

 

One way of doing this is as below.

Regex can be used in any format to get the desired output. 

 

Expanding my expression for better understanding 

 

(\w*),\s\d{2}\s([[:alpha:]]*\s\d*)\s(\d*)

 

(\w*) - Anything in brackets will create a new column if we use the parse output method

\w reads a-zA-Z0-9

* read any number of characters until its matches the criteria

,\s\d{2}\s - this reads the remaining characters and it is not under the bracket those are skipped in the output

([[:alpha:]]*\s\d*) - Reads any letter and \s space and \d for digit

(\d*) - reads the hour

 

 

ShankerV_1-1668578427892.png

 

 

Many thanks

Shanker V

Labels
Top Solution Authors