Code: Select all
preg_match('/<nobr[>][a-zA-Z]+<\/nobr><\/td>[\s]*<td class="fieldValue">[a-zA-z]+<\/td>/', '<nobr>Server</nobr></td> <td class="fieldValue">Name</td>other text not needed', $matches);
print_r($matches);
Is it possible to have it only pick out the Name part of the match? Or would i just have to use further functions to get that. The actual string to match will be a variable containing a html page and the "Name" section will vary.