moola Posted January 21, 2007 Share Posted January 21, 2007 [code]<td width="170" valign="top" onmouseover="FlyOver( 'ImSweetLikeThat5' );" onmouseout=[/code]Just wondering how I would get the ImSweetLikeThat5 from a html page with numerous code that resembles the above code except has different flyover names. I need to match all the names in the code and store them in a variable so I could view each one. Thanks Link to comment https://forums.phpfreaks.com/topic/35125-extract-a-name-from-html/ Share on other sites More sharing options...
effigy Posted January 22, 2007 Share Posted January 22, 2007 [tt]preg_match_all("/(?<=FlyOver\(\s')([^']+)(?='\s\))/", $data, $matches);[/tt] Link to comment https://forums.phpfreaks.com/topic/35125-extract-a-name-from-html/#findComment-166378 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.