The first regexp searches
through $origbuffer for \tD*fensive rebound without regard to case, and if
it finds a match puts a 1 in the 0th element of the array, $tempbounds,
correct?
Now, assuming that that is true, the next regexp, the one on the last
line, what does that do? PHP.net says that preg_split will look for the
value of $tempbounds[0], and use the / as a delimiter? is that it? That
doesn't quite make sense, since there won't be a 1 in the text, but there
will be a "\tDefensive rebound" but the documentation says that preg_match
returns an integer. Can anyone explain these two regexp for me? Thanks.
$tempbounds = array();
preg_match("/\t\D*fensive rebound/i", $origbuffer, $tempbounds);
if ($tempbounds) {
echo "<TD><b>$tempbounds[0]</b>";
$boundsplit = array();
$tempnull = array();
$boundname = '';
$boundtype = '';
$boundsplit = preg_split('/ /', $tempbounds[0]);