Im having a problem writing a regex match to extract a text string from another...
$container = 'Manufacturer:Hambone<br>blah blah';
if (ereg("Manufacturer:\ (.+)<br>",$container,$matches) ) {
$manufacturer = $matches[1];
}
So, given this code. My $manufacturer var is getting "Hambone<br>blah blah"
instead of just 'Hambone'
I could use [:alnum:]+ instead of .+ but the problem is that the manufacturer may actually consist of multiple words with whitespace and punctuation.
I guesss Im just missing the trick, any ideas? Thanks.