Re: Regex help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric, thanks for replying. I couldn't quite get that to work. Albert,
I'm currently working with what you suggested, though the unit names
are not that consistent:

$vals = preg_split(' ?X? ',$unit[1]);
echo "<strong>".$unit[1]."</strong><br />\n";
echo "Panel: ".$vals[0]."<br />Width: ".$vals[1]."<br />Height:
".$vals[2]."<br />\n";

202-90B 48 X 48 X 69 1/4
Panel: 202-90B 48
Width: 48
Height: 69 1/4

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux