Alteryx Designer Desktop Discussions

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

Parse number and string combination

LEXQ2005
8 - Asteroid

After JSON Parse, I get the attached data. The data of the JSON_Name field is a combination of data and string. I want to parse it, separate the number and string, and then convert strings to column headers.

The attached file includes the source data sheet (the data need to work on) and the target sheet (to explain the target view I want to get).

3 REPLIES 3
Qiu
20 - Arcturus
20 - Arcturus

@LEXQ2005 

Hope this is what you need.

Capture4A1.PNG

LEXQ2005
8 - Asteroid

@Qiu Thanks. Would you please explain the Regular Expression used?

Qiu
20 - Arcturus
20 - Arcturus

@LEXQ2005 
I assume your JSON_Name is starting with numbers then following by a "." and the rest would be the Column Headers.

so (\d+) means one ore more numbers.

(.+) means one ore more any characters.

in between use \ to escape . stands for a literal ".".

I always use this site.

https://regex101.com/

Labels