I have a line of information like this -
My Item Desc $19.99 ItemName/ItemCode In Stock
I've used preg match to get the name and item code from it, however it only gets one letter each side, how can i get the full string each side to the white space?
if (preg_match('#[A-Z]/[A-Z]#', $Item, $m)) {
$Name = $m[0];
echo "<br><b>Product Name and Code: $Name</b><br>";
}