Using PHP I want to remove a form from a string that contains html - Here is the php code I have been trying to use but it doesn't work. Any ideas?
$html = "<form ... </form>"
$pattern = "/<form(.*?)<\/form>/i";
$html = preg_replace($pattern,"",$html);