php - A simple preg_match conundrum -
a quick preg_match query...
i have html this...
<html> ... lots of irrelevant stuff ... <th> full name:</th> <td> john smith</td> </tr> ... </html> and here's preg string
'/<th>\s*full name:\s*<\/th>\s*<td>(.*)<\/td>/i' i'm trying grab 'john smith', i'm drawing blanks. ideas?
because . in .* not match newlines. can either use \s*(.*), want, or use s modifier.
Comments
Post a Comment