How to parse Ical file from Facebook Events in PHP Regex?
问题 I am trying to parse the Summary and DTSTART fields in this data and thought about using regex. Also tried reading line by line but couldn't work around the logic to implement it. Anyone help out? There are already made parsers out there but my requirements are abit unique and require a different targeted implementation. BEGIN:VCALENDAR PRODID:-//Facebook//NONSGML Facebook Events V1.0//EN X-WR-CALNAME:Friends' birthdays X-PUBLISHED-TTL:PT12H X-ORIGINAL-URL:/events/birthdays/ VERSION:2.0