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 -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -