Alteryx Designer Desktop Discussions

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

Help with splitting a string into 50 character column string

anshumannc
6 - Meteoroid

Hi, 

I am trying to split the following string "ENTERAL FORMULA, NUTRITIONALLY COMPLETE, HYDROLYZED PROTEINS (AMINO ACIDS AND PEPTIDE CHAIN), INCLUDES FATS, CARBOHYDRATES, VITAMINS AND MINERALS, MAY INCLUDE FIBER, ADMINISTERED THROUGH AN ENTERAL FEEDING TUBE, 100 CALORIES = 1 UNIT" into size 50char columns. However, regex keeps stripping off characters from the string. 

 

anshumannc_0-1684868717762.png

 

7 REPLIES 7
KimLamNg
8 - Asteroid

Not sure I understand your problem correctly but sounds like you should select Split to Columns (not Rows).

anshumannc
6 - Meteoroid

Hey thanks for the reply. The problem is the string is being truncated. Even when i split to columns. 

KimLamNg
8 - Asteroid

Can you provide the desired outcome? 

anshumannc
6 - Meteoroid

Hi Kim, 

 

The desired outcome should be that string split into multiple columns wiht character length of 50. example 

anshumannc_0-1684870764167.png

 

nagakavyasri
12 - Quasar

I see that the string is split into multiple columns with 50 character, is this not what you are looking for?

 

Screenshot 2023-05-23 155827.png

binuacs
20 - Arcturus

@anshumannc adjust the regex formula like below

 

binuacs_0-1684871973144.png

 

anshumannc
6 - Meteoroid

OMG that worked. Thank you so much. 

Labels