Replaced call to split (deprecated since php 5.3.0) to preg_split.

Hi, on our server, any search results in a big wall of php errors because split is deprecated. Here's a fix.

This is my first time using git/github so I hope I'm doing things right. 

Cheers :)