I want to get the search box from this site, I use php regular the form part, but there still has many other html code in it. So how to remove them and just get a pure search box? Thanks.
<?php
$str = file_get_contents('http://bingphp.codeplex.com');
preg_match_all('~<form.+</form>~iUs', $str, $match);
var_dump($match);
?>
Should use DomDocument parser ?
PS