Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
181 views
in Technique[技术] by (71.8m points)

Parsing phoenix array data

Phoenix data sample for element X1:
['[A, B, C, D, E]', '[A1, B1,C1, D1, E1]','[A2, B2, C2, D2, E2]','[A3, B3, C3, D3, E3]']

There are a variable number of [a, b, c, d, e] blocks for data element X1.

I want to parse array sub items A,C,E of data element X1 in to separate columns and then next set of a1, C1, E2 in to the next row, and loop through the unknown (x) number A,C,E groups.
final output example

col1 Col2 Col3
A C E
A1 C1 E1
A2 C2 E2
Ax Cx Ex

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...