Hi,

I need to parse the "description" text out of facebool iCal event (options->VEVENT->DESCRIPTION). This is a free multi-line text but somehow structured.
My questions is how do I parse the values into different fields?

Thanks!

Here is the text for example:

----

Host: Happy Days/ Happy Again

Venue:

Type: Music/Arts

Subtype: Opening

Description:
Bla bla 1
Bla bla 2

----

Comments

aron novak’s picture

To do this, you need to do some custom coding.
in FeedAPI, to do this, you need to write a wrapper parser around ical.
I do not know what you're trying to do, but consider using Feeds, it's much easier to achieve this via its well-designed OO architecture. And it also has an ical parser: http://drupal.org/node/614120

amir simantov’s picture

Thanks Aron. I will consider indeed the feeds module. Anyway, I think I still have to right the code. Where should this be hooked or changed? Can you give me a clue?