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]);

____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to