$str = "$start[4]"; preg_match(\'/as of(.*) /i\', $str, $match); $date = $match[1];
Then date is: July 4th,
But if you echo $start[4] you get: as of July 4th, YR11.
Shouldn´t the last part also be included in $date? Any suggestions?
Thanks.
Hm, if there isn't a space on the end of $start[4]'s value then no; the last character of the regexp is a space, so any match must also end with a space.