Category: Web Development

RealEstate.com.au Scraper

Wrote this when hunting for a house. Pretty much a scraper for realestate.com.au, displaying search results in a much more user friendly and advertisement free way. Also includes a couple more options than what is available in the usual realestate search form. And also the ability to quickly categorise and remove results from appearing again. […]

preg_match across multiple lines

Here’s how to do php preg_match multi line Say you have this html: <select name=”foo”> <option value=”1″>asdfa</option> <option>asd</option></select> and you want everything between the <select> box, use this php code: preg_match(‘/<select name=”foo”>(.*)</select>/msU’,$html,$matches);print_r($matches);