<?/// I created this function just to test preg_replace_callback how it workfunction abc($coin){ return 'leonardin ';}$aaa='<frameset framespacing="1" border="0" rows="72,*,62" frameborder="0"><frame name="top" scrolling="no" target="contents" src="new_page_6.htm" marginwidth="0" marginheight="16" noresize><frameset cols="171,*"><frame name="contents" target="main" src="tocframe.htm" noresize><frame name="main" src="principal.htm" scrolling="auto" noresize></frameset><frame name="bottom" scrolling="no" target="contents" src="new_page_5.htm"><noframes>';echo preg_replace_callback("|src=[\"'](\S*)[\"']|","abc",$aaa);?>