I need help parsing a string.
The string is:
DTSTART;VALUE=DATE:**20120201** DTEND;VALUE=DATE:20120202 RRULE:FREQ=**DAILY**;INTERVAL=**2**;UNTIL=**20120331**
(the variables I need have ** on either side of them)
I need to assign the values in bold to the following variables (in the same order):
$startdate
$frequency
$interval
$enddate
All help is appreciated. Thanks!
EDIT: the actual string is:
DTSTART;VALUE=DATE:20120201 DTEND;VALUE=DATE:20120202 RRULE:FREQ=DAILY;INTERVAL=2;UNTIL=20120331
I only added ** on either side of the variables to show which ones I wanted (as bold highlighting does not work in the code snippet)