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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -