I have some raw weather information From this website:
000|17:15
000|17:20
000|17:25
000|17:30
000|17:35
000|17:40
000|17:45
000|17:50
000|17:55
000|18:00
000|18:05
000|18:10
000|18:15
000|18:20
000|18:25
000|18:30
000|18:35
000|18:40
000|18:45
000|18:50
000|18:55
000|19:00
000|19:05
000|19:10
Now, i can break down this whole chunk to separate lines with split(text, "\n").
The problem starts when breaking down further on the "|" and spaces (there are spaces at the end of each line) with any variation i tried like
Code: Select all
split(text_line, "|*\\s")
My script (1 of many delimiter variations i've tried):
Code: Select all
// Get lines from rain table
lineSplit =split(text,"\n\s");
// Get rain value + time value
lineTime = split(lineSplit, "|")[0];
lineTime = split(lineSplit, "|")[1];