The issue I'm running into is that, because this was a total free response formatted question, I can't parse them only on commas, which would just be
Code:
split q1, parse(",")
Code:
split q1, parse(" ")
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str8 q1 str10 q2 "A B " "a, c , D" "A C " "b, d " "a,c " "b " "d, b" "a" "d, B" "d, c " "b d" "d, b" "A, C, D" "a b c " "B D" "C, D" "b, D" "A, B, C, D" "a, c , D" "b" "b, c" "d, b" "A B " "d, B" "A, d" "b d" "c d b" "A, C" "d, b" "B" "d, B" "b" "a " "a, b, c" "A, C, D" "b d " "b" "A, B" "b, D" "c " "a, c , D" "c d" "b, c" "A " end
0 Response to Splitting messy string vars
Post a Comment