Im grabbing details using preg_match_all but i have a wired html tag placement to grab.. I need help to do this using preg_match_all!
this is the structure of html tag on that page !
<em>Details</em>I want to <em>get</em>
I abled to get just only “Details” using
preg_match_all('/em>([^"]+)<\/em>/',$scrr,$match);
but i want to get whole thing like “Details i want to get”
Thanks!
Parsing HTML with regex is not a good idea. There are just too many variables that can cause things to go haywire.
Nonetheless: