This may sound like a stupid question, but: which is faster when using it to extract keywords in a search query in php:
$keyword = preg_split(\'/[\\s]+/\', $
General rule: if you can do something without regular expressions, do it without them!
if you want to split string by spaces, explode is way faster.