I have a string like "The beer party 2011/2012" in PHP.
I still cannot figure how to make these years and the sentence into two different arrays? Like this:
$arr[0] = the beer party;
$arr[1] = 2011/2012 or if its just 2011 then $arr[1] = 2011;
I have tried \d+
and \S+\s+
but do not know how to use it with combined.