Alteryx Designer Desktop Discussions

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

Regex formula

SH_94
11 - Bolide

HI community,

 

Would like to ask how can we split the following number into three category 

INput

1. 273D2347.75  

2. 1060C8732.85

 

Category 1 - 273

Category 2- D

Category 3 - 2347.75  

 

Category 1 - 1060

Category 2- C

Category 3 -8732.85  

 

 

Thank you

3 REPLIES 3
IraWatt
17 - Castor
17 - Castor

Hey @SH_94,

Given your examples here is one way:

IraWatt_0-1671386643861.png

(\d+)(\D+)(.*)

The first group captures 1 or more numbers, the second group captures one or more Non numbers, and the third group captures what is left.

 

If you want to learn more about Regex the community has some really quick interactive videos on getting to grips with it here https://community.alteryx.com/t5/Interactive-Lessons/tkb-p/interactive-lessons/label-name/Parsing%20...

 

Any questions or issues please ask

Ira Watt
Technical Consultant
Watt@Bulien.com 

 

ShankerV
17 - Castor

Hi @SH_94 

 

One way of doing this.

 

ShankerV_0-1671386949465.png

Note: The workflow used to achieve the solution is attached which can be downloaded to see how the solution works.

 

If you believe your problem has been resolved. Please mark helpful answers as a solution so that future users with the same problem can find them more easily!!!!

 

Many thanks

Shanker V

 

PanPP
Alteryx Alumni (Retired)

Hi @SH_94 

 

Another way of doing this.

 

If it helps, please like the post and mark it as a solution.

 

Labels