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

Regex Tool data parsing

Vaib
8 - Asteroid

Hello,

 

I am trying to parse the below text using the Regex tool but am kind of stuck:

 

Text to be parsedPart 1Part 2Part 3Part 4Part 5Part 6
35mvY5S1H3J2QZyna3TFe0,10/30/2020172*0.737*96[0]35mvY5S1H3J2QZyna3TFe010/30/20201720.737960
47EiUVwUp4C9fGccaPuUCS,10/30/2020205*0.731*100[4]47EiUVwUp4C9fGccaPuUCS10/30/20202050.7311004

 

Also, can you guide me as to how I can learn and understand regex better.

7 REPLIES 7
atcodedog05
22 - Nova
22 - Nova

Hi @Vaib 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1641894083431.png

 

Hope this helps : )

 

binuacs
21 - Polaris

@Vaib Similar to @atcodedog05  approach

 

(.+?)\,(\d+\/\d+/\d{4})(\d{3})\*(.+?)\*(\d+)\[(\d+)\]

 

 


 

binuacs_0-1641894325872.png

 

Vaib
8 - Asteroid

Thank you! Both the solutions did work for me. Would you be able to guide me as to how I can learn regex. 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Vaib 

 

Here are some helpful resources 

https://community.alteryx.com/t5/Alteryx-Knowledge-Base/Tool-Mastery-RegEx/ta-p/37689

https://regexr.com/ 

Cheers and have a nice day!

Christina_H
14 - Magnetar

@Vaib The interactive lessons are a good place to start, RegEx is in the Parsing Data section

https://community.alteryx.com/t5/Interactive-Lessons/tkb-p/interactive-lessons/label-name/Parsing%20...

Vaib
8 - Asteroid

Thank you everyone!

MartWClimber
9 - Comet

what also is a great source is https://github.com/ziishaned/learn-regex#learn-regex

 

 

Labels