HI.. I have the below content.. <img src="some url" onmouseover="some function" onmouseout="somefunction"> HTML: I want to extract src and functions from the above pattern... here is the code am using .. preg_match_all("/<img src=\"(.*?)\" onmouseover=\"(.*)\" onmouseout=\"(.*)\"/); PHP: It could not match as the onmouseover started in new line..can you please help me to match this... Thanks
before you do the preg_match_all remove all line feeds from the string ie $string = str_replace("\n",'',$string); PHP: