Hi,
Say I want scan a source code of a website.
Often a website refer to another website.
Usually, they contain things like:
src="someotherpage.htm"
I want to delete all such src="whatever" from the site.
How do I do that?
Will this work?
I got a code that work to change all <form whatever> to </form>
$content = preg_replace("'<form[^>]*?>'si",'<form>',$content);
The thing is, " is a special character.
Will this work?
$content = preg_replace("'src=\"[^\"]*?\"'si",'',$content);