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

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -