S
Sandman
Hello! I have a string like this:
12.00 Simpsons 12.30 Seinfeld 13.00 Movie: Dante's Peak
And I want to split that in seperate "programs" that I'd like to deal with
individually. So, I want this in an array like this:
"12.00 Simpsons",
"12.30 Seindfeld"
"13.00 Movie: Dante's Peak"
And the one thing that I can split on is '\d\d\.\d\d', which is the only common
thing, but using
split /\d\d\.\d\d/
produces
"Simpsons",
"Seindfeld"
"Movie: Dante's Peak"
Is there a way? How would you do it?
12.00 Simpsons 12.30 Seinfeld 13.00 Movie: Dante's Peak
And I want to split that in seperate "programs" that I'd like to deal with
individually. So, I want this in an array like this:
"12.00 Simpsons",
"12.30 Seindfeld"
"13.00 Movie: Dante's Peak"
And the one thing that I can split on is '\d\d\.\d\d', which is the only common
thing, but using
split /\d\d\.\d\d/
produces
"Simpsons",
"Seindfeld"
"Movie: Dante's Peak"
Is there a way? How would you do it?