Alteryx Designer Desktop Discussions

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

Parse Using Regex

omarammar95
5 - Atom

I want to split into 2 columns where I have index price in a column and the number in another column also same for datetime should be in a column and datetime in another column, you will find attached picture of the workflow and the file itself, I should mention that I extracted this data from HTML link so any HELP !!!

 

Screenshot (344).png

4 REPLIES 4
ShankerV
17 - Castor

Hi @omarammar95 

 

Please find the expected output.

 

ShankerV_0-1675163193022.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @omarammar95 

 

Adding the formula tool, will help to remove the last special character too.

 

ShankerV_0-1675163410607.png

 

 

"([a-zA-Z]+)":"{0,1}(.+)

 

ShankerV_1-1675163437801.png

 

 

Note: I cant use the download tool here, hence shared the result from the screenshot shared from your end.

 

Hope it helps!!!

 

 

Many thanks

Shanker V

 

 

DavidSkaife
13 - Pulsar

Hi @omarammar95 

 

You don't need to use Regex if you don't need to: the data has a : as a data split, so you can use Text to Columns on that and tidy up the outputs using Trim function:

 

DavidSkaife_0-1675163425618.png

 

Workflow attached to help you

omarammar95
5 - Atom

Thanks guys for your help both ways worked, really appreciate it

Labels